Пример #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));
        }
Пример #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));
        }
Пример #3
0
 public void TestEqualsWrongType()
 {
     var first = new Assembly(this.SampleAssemblyPath);
     Assert.IsFalse(first.Equals(27));
 }
Пример #4
0
 public void TestEqualsNull()
 {
     var first = new Assembly(this.SampleAssemblyPath);
     Assert.IsFalse(first.Equals(null));
 }