public void EqualityOverload_does_not_use_virtual_functionality() { // Arrange var sut = new ProhibitVirtualMethodsEntity(); // Act & Assert #pragma warning disable 219 Assert.DoesNotThrow(() => { var throwaway = sut == new ProhibitVirtualMethodsEntity(); }); #pragma warning restore 219 }
public void EqualityOverload_treats_two_empty_entities_as_different() { // Arrange var sut = new ProhibitVirtualMethodsEntity(); // Act var result = sut == new ProhibitVirtualMethodsEntity(); // Assert Assert.IsFalse(result); }