11#region License
22/*
33 * Copyright 2002-2010 the original author or authors.
4- *
4+ *
55 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
77 * You may obtain a copy of the License at
8- *
8+ *
99 * http://www.apache.org/licenses/LICENSE-2.0
10- *
10+ *
1111 * Unless required by applicable law or agreed to in writing, software
1212 * distributed under the License is distributed on an "AS IS" BASIS,
1313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -55,7 +55,7 @@ public void SinglePattern()
5555 // Interceptor behind regexp advisor
5656 NopInterceptor nop = ( NopInterceptor ) iof . GetObject ( "NopInterceptor" ) ;
5757 Assert . AreEqual ( 0 , nop . Count ) ;
58-
58+
5959 int newAge = 12 ;
6060 // Not advised
6161 advised . Exceptional ( null ) ;
@@ -74,20 +74,20 @@ public void MultiplePatterns()
7474 {
7575 IObjectFactory iof = new XmlObjectFactory ( new ReadOnlyXmlTestResource ( "RegularExpressionSetterTests.xml" , GetType ( ) ) ) ;
7676 IPerson advised = ( IPerson ) iof . GetObject ( "SettersAndReturnsThisAdvised" ) ;
77-
77+
7878 // Interceptor behind regexp advisor
7979 NopInterceptor nop = ( NopInterceptor ) iof . GetObject ( "NopInterceptor" ) ;
8080 Assert . AreEqual ( 0 , nop . Count ) ;
81-
81+
8282 int newAge = 12 ;
8383 // Not advised
8484 advised . Exceptional ( null ) ;
8585 Assert . AreEqual ( 0 , nop . Count ) ;
86-
86+
8787 // This is proxied
8888 advised . ReturnsThis ( ) ;
8989 Assert . AreEqual ( 1 , nop . Count ) ;
90-
90+
9191 // Only setter is advised
9292 advised . SetAge ( newAge ) ;
9393 Assert . AreEqual ( 2 , nop . Count ) ;
@@ -97,27 +97,28 @@ public void MultiplePatterns()
9797 }
9898
9999 [ Test ]
100+ [ Platform ( "Win" ) ]
100101 public void Serialization ( )
101102 {
102103 IObjectFactory iof = new XmlObjectFactory ( new ReadOnlyXmlTestResource ( "RegularExpressionSetterTests.xml" , GetType ( ) ) ) ;
103104 IPerson p = ( IPerson ) iof . GetObject ( "SerializableSettersAdvised" ) ;
104105 // Interceptor behind regexp advisor
105106 NopInterceptor nop = ( NopInterceptor ) iof . GetObject ( "NopInterceptor" ) ;
106107 Assert . AreEqual ( 0 , nop . Count ) ;
107-
108+
108109 int newAge = 12 ;
109110 // Not advised
110111 Assert . AreEqual ( 0 , p . GetAge ( ) ) ;
111112 Assert . AreEqual ( 0 , nop . Count ) ;
112-
113+
113114 // This is proxied
114115 p . SetAge ( newAge ) ;
115116 Assert . AreEqual ( 1 , nop . Count ) ;
116117 p . SetAge ( newAge ) ;
117118 Assert . AreEqual ( newAge , p . GetAge ( ) ) ;
118119 // Only setter fired
119120 Assert . AreEqual ( 2 , nop . Count ) ;
120-
121+
121122 // Serialize and continue...
122123
123124#if ! NETCOREAPP // deep chains for Type serialization problems, not worth the effort at the moment
0 commit comments