Skip to content

Commit 278a770

Browse files
committed
[tests] Update generator tests.
1 parent e5568be commit 278a770

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/generator/BGenTests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,28 +260,28 @@ public void Bug35176 ()
260260
string expectedAttributes =
261261
@" Bug35176.IFooInterface: [SupportedOSPlatform(""ios14.3"")]
262262
Bug35176.IFooInterface: [SupportedOSPlatform(""maccatalyst15.3"")]
263-
Bug35176.IFooInterface: [SupportedOSPlatform(""macos12.2"")]
263+
Bug35176.IFooInterface: [SupportedOSPlatform(""macos26.2"")]
264264
UIKit.UIView Bug35176.BarObject::BarView(): [SupportedOSPlatform(""ios14.3"")]
265265
UIKit.UIView Bug35176.BarObject::BarView(): [SupportedOSPlatform(""maccatalyst15.3"")]
266-
UIKit.UIView Bug35176.BarObject::BarView(): [SupportedOSPlatform(""macos12.2"")]
266+
UIKit.UIView Bug35176.BarObject::BarView(): [SupportedOSPlatform(""macos26.2"")]
267267
UIKit.UIView Bug35176.BarObject::FooView(): [SupportedOSPlatform(""ios14.3"")]
268268
UIKit.UIView Bug35176.BarObject::FooView(): [SupportedOSPlatform(""maccatalyst15.3"")]
269-
UIKit.UIView Bug35176.BarObject::FooView(): [SupportedOSPlatform(""macos12.2"")]
269+
UIKit.UIView Bug35176.BarObject::FooView(): [SupportedOSPlatform(""macos26.2"")]
270270
UIKit.UIView Bug35176.BarObject::get_BarView(): [SupportedOSPlatform(""ios14.4"")]
271271
UIKit.UIView Bug35176.BarObject::get_BarView(): [SupportedOSPlatform(""maccatalyst15.4"")]
272-
UIKit.UIView Bug35176.BarObject::get_BarView(): [SupportedOSPlatform(""macos12.2"")]
272+
UIKit.UIView Bug35176.BarObject::get_BarView(): [SupportedOSPlatform(""macos26.2"")]
273273
UIKit.UIView Bug35176.BarObject::GetBarMember(System.Int32): [SupportedOSPlatform(""ios14.3"")]
274274
UIKit.UIView Bug35176.BarObject::GetBarMember(System.Int32): [SupportedOSPlatform(""maccatalyst15.3"")]
275-
UIKit.UIView Bug35176.BarObject::GetBarMember(System.Int32): [SupportedOSPlatform(""macos12.2"")]
275+
UIKit.UIView Bug35176.BarObject::GetBarMember(System.Int32): [SupportedOSPlatform(""macos26.2"")]
276276
UIKit.UIView Bug35176.FooInterface_Extensions::GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""ios14.4"")]
277277
UIKit.UIView Bug35176.FooInterface_Extensions::GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""maccatalyst15.4"")]
278-
UIKit.UIView Bug35176.FooInterface_Extensions::GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""macos12.2"")]
278+
UIKit.UIView Bug35176.FooInterface_Extensions::GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""macos26.2"")]
279279
UIKit.UIView Bug35176.IFooInterface::_GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""ios14.4"")]
280280
UIKit.UIView Bug35176.IFooInterface::_GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""maccatalyst15.4"")]
281-
UIKit.UIView Bug35176.IFooInterface::_GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""macos12.2"")]
281+
UIKit.UIView Bug35176.IFooInterface::_GetBarView(Bug35176.IFooInterface): [SupportedOSPlatform(""macos26.2"")]
282282
UIKit.UIView Bug35176.IFooInterface::get_BarView(): [SupportedOSPlatform(""ios14.4"")]
283283
UIKit.UIView Bug35176.IFooInterface::get_BarView(): [SupportedOSPlatform(""maccatalyst15.4"")]
284-
UIKit.UIView Bug35176.IFooInterface::get_BarView(): [SupportedOSPlatform(""macos12.2"")]
284+
UIKit.UIView Bug35176.IFooInterface::get_BarView(): [SupportedOSPlatform(""macos26.2"")]
285285
";
286286

287287
expectedAttributes = expectedAttributes.Replace ("\r", string.Empty);
@@ -1003,13 +1003,13 @@ public void AttributesFromInlinedProtocols (Profile profile)
10031003
var expectedAttributes = new string [] {
10041004
@"[BindingImpl(3)]
10051005
[Export(""someMethod1:"")]
1006-
[SupportedOSPlatform(""ios13.0"")]
1006+
[SupportedOSPlatform(""ios"")]
10071007
[SupportedOSPlatform(""maccatalyst"")]
10081008
[UnsupportedOSPlatform(""tvos"")]",
10091009

10101010
@"[BindingImpl(3)]
10111011
[Export(""someMethod2:"")]
1012-
[SupportedOSPlatform(""ios13.0"")]
1012+
[SupportedOSPlatform(""ios"")]
10131013
[SupportedOSPlatform(""maccatalyst"")]
10141014
[UnsupportedOSPlatform(""tvos"")]",
10151015

@@ -1137,12 +1137,12 @@ public void GeneratedAttributeOnPropertyAccessors2 ()
11371137
var expectedPropertyAttributes =
11381138
@"[SupportedOSPlatform(""ios"")]
11391139
[SupportedOSPlatform(""maccatalyst"")]
1140-
[SupportedOSPlatform(""macos13.0"")]
1140+
[SupportedOSPlatform(""macos"")]
11411141
[UnsupportedOSPlatform(""tvos"")]";
11421142
var expectedSetterAttributes =
11431143
@"[SupportedOSPlatform(""ios"")]
11441144
[SupportedOSPlatform(""maccatalyst"")]
1145-
[SupportedOSPlatform(""macos13.0"")]
1145+
[SupportedOSPlatform(""macos"")]
11461146
[UnsupportedOSPlatform(""tvos"")]";
11471147

11481148
expectedPropertyAttributes = expectedPropertyAttributes.Replace ("\r", string.Empty);

tests/generator/bug35176.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Bug35176 {
77

88
[Introduced (PlatformName.iOS, 14, 3)]
9-
[Introduced (PlatformName.MacOSX, 12, 2)]
9+
[Introduced (PlatformName.MacOSX, 26, 2)]
1010
[Introduced (PlatformName.MacCatalyst, 15, 3)]
1111
[Protocol]
1212
interface FooInterface {

0 commit comments

Comments
 (0)