Esempio n. 1
0
        public void TestEqualsFullNameDifferent()
        {
            var first = new Assembly(this.SampleAssemblyPath);
            var second = new AssemblyStub("WrongFullName");

            Assert.IsFalse(first.Equals(second));
            Assert.IsFalse(second.Equals(first));
        }
Esempio n. 2
0
        public void TestEqualsAllSame()
        {
            var first = new Assembly(this.SampleAssemblyPath);
            var second = new AssemblyStub("MockEverythingTests.Inspection.Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null");

            Assert.IsTrue(first.Equals(second));
            Assert.IsTrue(second.Equals(first));
        }
Esempio n. 3
0
 public void TestEqualsWrongType()
 {
     var first = new Assembly(this.SampleAssemblyPath);
     Assert.IsFalse(first.Equals(27));
 }
Esempio n. 4
0
 public void TestEqualsNull()
 {
     var first = new Assembly(this.SampleAssemblyPath);
     Assert.IsFalse(first.Equals(null));
 }