public void ReferenceEqualsFailsWhenUsed() { var ex = Assert.Throws <InvalidOperationException>(() => DirectoryAssert.ReferenceEquals(string.Empty, string.Empty)); Assert.That(ex.Message, Does.StartWith("DirectoryAssert.ReferenceEquals should not be used.")); }