Beispiel #1
0
        public void LinkedEqualsInlineTest()
        {
            var script1 = new LinkedScript("path/to/script");
            var script2 = new InlineScript("path/to/script");

            Assert.IsFalse(script1.Equals(script2));
            Assert.IsFalse(script2.Equals(script1));
        }
Beispiel #2
0
        public void LinkedEqualsLinkedTest2()
        {
            var script1 = new LinkedScript("path/to/script1");
            var script2 = new LinkedScript("path/to/script2");

            Assert.IsFalse(script1.Equals(script2));
            Assert.IsFalse(script2.Equals(script1));
        }
Beispiel #3
0
        public void LinkedEqualsInlineTest2()
        {
            var script1 = new LinkedScript("path/to/script");
            var script2 = new InlineScript("path/to/script");

            var obj = (object)script2;

            Assert.IsFalse(script1.Equals(obj));
            Assert.IsFalse(obj.Equals(script1));
        }
Beispiel #4
0
        public void LinkedEqualsLinkedTest3()
        {
            var script1 = new LinkedScript("path/to/script");
            var script2 = new LinkedScript("path/to/script");

            var obj = (object)script2;

            Assert.IsTrue(script1.Equals(obj));
            Assert.IsTrue(obj.Equals(script1));
        }