Ejemplo n.º 1
0
            public void With_Different_Ids_Are_NotEqual()
            {
                var             resources   = new ResourceDictionary();
                var             resources2  = new ResourceDictionary();
                ThemeDescriptor descriptor  = new ThemeDescriptor(Guid.NewGuid(), "ABC", resources);
                ThemeDescriptor descriptor2 = new ThemeDescriptor(Guid.NewGuid(), "other name", resources2);

                Assert.IsFalse(descriptor.Equals(descriptor2));
            }
Ejemplo n.º 2
0
            public void With_Same_Id_Are_Equal()
            {
                var             resources   = new ResourceDictionary();
                var             resources2  = new ResourceDictionary();
                Guid            guid        = Guid.NewGuid();
                string          name        = "ABC";
                ThemeDescriptor descriptor  = new ThemeDescriptor(guid, name, resources);
                ThemeDescriptor descriptor2 = new ThemeDescriptor(guid, "other name", resources2);

                Assert.IsTrue(descriptor.Equals(descriptor2));
            }