예제 #1
0
        public void LinkedEqualsEmbeddedTest()
        {
            var source = "some style";
            var style1 = new LinkedStyle(source);
            var style2 = new EmbeddedStyle(source);

            Assert.IsFalse(style1.Equals(style2));
            Assert.IsFalse(style2.Equals(style1));
        }
예제 #2
0
        public void LinkedStyleEqualsTest2()
        {
            var style1 = new LinkedStyle("path/to/style1.css");
            var style2 = new LinkedStyle("path/to/style2.css");

            Assert.AreNotEqual(style1, style2);
            Assert.AreNotEqual(style1, style2);
            Assert.IsFalse(style1.Equals(style2));
            Assert.IsFalse(style2.Equals(style1));
        }
예제 #3
0
        public void LinkedStyleEqualsTest()
        {
            var style1 = new LinkedStyle("path/to/style.css");
            var style2 = new LinkedStyle("path/to/style.css");

            Assert.IsFalse(ReferenceEquals(style1, style2));
            Assert.AreEqual(style1, style2);
            Assert.AreEqual(style2, style1);
            Assert.IsTrue(style1.Equals(style2));
            Assert.IsTrue(style2.Equals(style1));
        }