Skip to content

Commit 5e3623a

Browse files
committed
Fix tests
1 parent 26314c8 commit 5e3623a

File tree

4 files changed

+82
-3
lines changed

4 files changed

+82
-3
lines changed

src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.net472.approved.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,32 @@ namespace ReactiveUI
631631
public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { }
632632
public TSender Sender { get; }
633633
}
634+
[System.Runtime.Serialization.DataContract]
635+
public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged<ReactiveUI.IReactiveObject>, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable<ReactiveUI.ReactiveRecord>
636+
{
637+
public ReactiveRecord() { }
638+
protected ReactiveRecord(ReactiveUI.ReactiveRecord original) { }
639+
[System.Runtime.Serialization.IgnoreDataMember]
640+
public System.IObservable<ReactiveUI.IReactivePropertyChangedEventArgs<ReactiveUI.IReactiveObject>> Changed { get; }
641+
[System.Runtime.Serialization.IgnoreDataMember]
642+
public System.IObservable<ReactiveUI.IReactivePropertyChangedEventArgs<ReactiveUI.IReactiveObject>> Changing { get; }
643+
protected virtual System.Type EqualityContract { get; }
644+
[System.Runtime.Serialization.IgnoreDataMember]
645+
public System.IObservable<System.Exception> ThrownExceptions { get; }
646+
public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged;
647+
public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging;
648+
public virtual ReactiveUI.ReactiveRecord <Clone>$() { }
649+
public bool AreChangeNotificationsEnabled() { }
650+
public System.IDisposable DelayChangeNotifications() { }
651+
public virtual bool Equals(ReactiveUI.ReactiveRecord? other) { }
652+
public override bool Equals(object? obj) { }
653+
public override int GetHashCode() { }
654+
protected virtual bool PrintMembers(System.Text.StringBuilder builder) { }
655+
public System.IDisposable SuppressChangeNotifications() { }
656+
public override string ToString() { }
657+
public static bool operator !=(ReactiveUI.ReactiveRecord? r1, ReactiveUI.ReactiveRecord? r2) { }
658+
public static bool operator ==(ReactiveUI.ReactiveRecord? r1, ReactiveUI.ReactiveRecord? r2) { }
659+
}
634660
public static class Reflection
635661
{
636662
public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression expression) { }

src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.net5.0.approved.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,32 @@ namespace ReactiveUI
626626
public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { }
627627
public TSender Sender { get; }
628628
}
629+
[System.Runtime.Serialization.DataContract]
630+
public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged<ReactiveUI.IReactiveObject>, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable<ReactiveUI.ReactiveRecord>
631+
{
632+
public ReactiveRecord() { }
633+
protected ReactiveRecord(ReactiveUI.ReactiveRecord original) { }
634+
[System.Runtime.Serialization.IgnoreDataMember]
635+
public System.IObservable<ReactiveUI.IReactivePropertyChangedEventArgs<ReactiveUI.IReactiveObject>> Changed { get; }
636+
[System.Runtime.Serialization.IgnoreDataMember]
637+
public System.IObservable<ReactiveUI.IReactivePropertyChangedEventArgs<ReactiveUI.IReactiveObject>> Changing { get; }
638+
protected virtual System.Type EqualityContract { get; }
639+
[System.Runtime.Serialization.IgnoreDataMember]
640+
public System.IObservable<System.Exception> ThrownExceptions { get; }
641+
public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged;
642+
public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging;
643+
public virtual ReactiveUI.ReactiveRecord <Clone>$() { }
644+
public bool AreChangeNotificationsEnabled() { }
645+
public System.IDisposable DelayChangeNotifications() { }
646+
public virtual bool Equals(ReactiveUI.ReactiveRecord? other) { }
647+
public override bool Equals(object? obj) { }
648+
public override int GetHashCode() { }
649+
protected virtual bool PrintMembers(System.Text.StringBuilder builder) { }
650+
public System.IDisposable SuppressChangeNotifications() { }
651+
public override string ToString() { }
652+
public static bool operator !=(ReactiveUI.ReactiveRecord? r1, ReactiveUI.ReactiveRecord? r2) { }
653+
public static bool operator ==(ReactiveUI.ReactiveRecord? r1, ReactiveUI.ReactiveRecord? r2) { }
654+
}
629655
public static class Reflection
630656
{
631657
public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression expression) { }

src/ReactiveUI.Tests/API/ApiApprovalTests.ReactiveUI.netcoreapp3.1.approved.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,32 @@ namespace ReactiveUI
624624
public ReactivePropertyChangingEventArgs(TSender sender, string? propertyName) { }
625625
public TSender Sender { get; }
626626
}
627+
[System.Runtime.Serialization.DataContract]
628+
public class ReactiveRecord : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveNotifyPropertyChanged<ReactiveUI.IReactiveObject>, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging, System.IEquatable<ReactiveUI.ReactiveRecord>
629+
{
630+
public ReactiveRecord() { }
631+
protected ReactiveRecord(ReactiveUI.ReactiveRecord original) { }
632+
[System.Runtime.Serialization.IgnoreDataMember]
633+
public System.IObservable<ReactiveUI.IReactivePropertyChangedEventArgs<ReactiveUI.IReactiveObject>> Changed { get; }
634+
[System.Runtime.Serialization.IgnoreDataMember]
635+
public System.IObservable<ReactiveUI.IReactivePropertyChangedEventArgs<ReactiveUI.IReactiveObject>> Changing { get; }
636+
protected virtual System.Type EqualityContract { get; }
637+
[System.Runtime.Serialization.IgnoreDataMember]
638+
public System.IObservable<System.Exception> ThrownExceptions { get; }
639+
public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged;
640+
public event System.ComponentModel.PropertyChangingEventHandler? PropertyChanging;
641+
public virtual ReactiveUI.ReactiveRecord <Clone>$() { }
642+
public bool AreChangeNotificationsEnabled() { }
643+
public System.IDisposable DelayChangeNotifications() { }
644+
public virtual bool Equals(ReactiveUI.ReactiveRecord? other) { }
645+
public override bool Equals(object? obj) { }
646+
public override int GetHashCode() { }
647+
protected virtual bool PrintMembers(System.Text.StringBuilder builder) { }
648+
public System.IDisposable SuppressChangeNotifications() { }
649+
public override string ToString() { }
650+
public static bool operator !=(ReactiveUI.ReactiveRecord? r1, ReactiveUI.ReactiveRecord? r2) { }
651+
public static bool operator ==(ReactiveUI.ReactiveRecord? r1, ReactiveUI.ReactiveRecord? r2) { }
652+
}
627653
public static class Reflection
628654
{
629655
public static string ExpressionToPropertyNames(System.Linq.Expressions.Expression expression) { }

src/ReactiveUI/IsExternalInit.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// Copyright (c) 2019-2021 ReactiveUI Association Incorporated. All rights reserved.
2-
// ReactiveUI Association Incorporated licenses this file to you under the MIT license.
1+
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
2+
// Licensed to the .NET Foundation under one or more agreements.
3+
// The .NET Foundation licenses this file to you under the MIT license.
34
// See the LICENSE file in the project root for full license information.
45

56
using System.ComponentModel;
@@ -14,4 +15,4 @@ namespace System.Runtime.CompilerServices
1415
internal static class IsExternalInit
1516
{
1617
}
17-
}
18+
}

0 commit comments

Comments
 (0)