public void Equality() { var a = new UnsafeBlock(); var b = new UnsafeBlock(); Assert.AreEqual(a, b); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); Assert.AreNotEqual(0, a.GetHashCode()); Assert.AreNotEqual(1, a.GetHashCode()); }
public void UnsafeBlock() { var sst = new UnsafeBlock(); AssertPrint(sst, "unsafe { /* content ignored */ }"); }
public void VisitorWithReturnIsImplemented() { var sut = new UnsafeBlock(); sut.Accept(23).VerifyWithReturn(v => v.Visit(sut, 23)); }
public void ChildrenIdentity() { var sut = new UnsafeBlock(); AssertChildren(sut); }