@@ -39,7 +39,7 @@ public void TestInitWithPath()
3939 string path = System . IO . Path . Combine ( System . IO . Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) , "Colors.colorset" ) ;
4040 ColorSet set = new ColorSet ( path ) ;
4141
42- Assert . IsTrue ( set . Colors . Count > 0 ) ;
42+ Assert . IsTrue ( set . Count > 0 ) ;
4343 }
4444
4545 [ TestMethod ]
@@ -49,19 +49,19 @@ public void TestInitWithData()
4949 Data data = new Data ( path ) ;
5050 ColorSet set = new ColorSet ( data ) ;
5151
52- Assert . IsTrue ( set . Colors . Count > 0 ) ;
52+ Assert . IsTrue ( set . Count > 0 ) ;
5353 }
5454
5555 [ TestMethod ]
5656 public void TestShared ( )
5757 {
58- Assert . AreEqual ( ColorSet . Shared . Colors . Count , 2 ) ;
58+ Assert . AreEqual ( ColorSet . Shared . Count , 2 ) ;
5959
60- Assert . IsTrue ( ColorSet . Shared . Colors . ContainsKey ( "NoVariant" ) ) ;
61- Assert . IsTrue ( ColorSet . Shared . Colors . ContainsKey ( "Variant" ) ) ;
60+ Assert . IsTrue ( ColorSet . Shared [ "NoVariant" ] != null ) ;
61+ Assert . IsTrue ( ColorSet . Shared [ "Variant" ] != null ) ;
6262
63- ColorPair p1 = ColorSet . Shared . Colors [ "NoVariant" ] ;
64- ColorPair p2 = ColorSet . Shared . Colors [ "Variant" ] ;
63+ ColorPair p1 = ColorSet . Shared [ "NoVariant" ] ;
64+ ColorPair p2 = ColorSet . Shared [ "Variant" ] ;
6565
6666 {
6767 if ( p1 . Color is SolidColorBrush c )
@@ -144,13 +144,13 @@ public void TestCreate()
144144
145145 set = new ColorSet ( set . Data ) ;
146146
147- Assert . AreEqual ( set . Colors . Count , 2 ) ;
147+ Assert . AreEqual ( set . Count , 2 ) ;
148148
149- Assert . IsTrue ( set . Colors . ContainsKey ( "NoVariant" ) ) ;
150- Assert . IsTrue ( set . Colors . ContainsKey ( "Variant" ) ) ;
149+ Assert . IsTrue ( set [ "NoVariant" ] != null ) ;
150+ Assert . IsTrue ( set [ "Variant" ] != null ) ;
151151
152- ColorPair p1 = set . Colors [ "NoVariant" ] ;
153- ColorPair p2 = set . Colors [ "Variant" ] ;
152+ ColorPair p1 = set [ "NoVariant" ] ;
153+ ColorPair p2 = set [ "Variant" ] ;
154154
155155 {
156156 if ( p1 . Color is SolidColorBrush c )
0 commit comments