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