public void TestEqual() { var left = new Null(); var right = new Null(); Assert.AreEqual(left, right); Assert.IsTrue(left == right); Assert.IsTrue(left.Equals(right)); Assert.IsTrue(left != null); // ReSharper disable EqualExpressionComparison Assert.IsTrue(left == left); // ReSharper restore EqualExpressionComparison Assert.Throws <ArgumentNullException>(() => left.AppendBytesTo(null)); Assert.AreEqual("Null", left.ToString()); }