public void TestTransform() { const string Input = "Test"; var repo = new PresentationSpecialCharsRepository(); var result = repo.Transform(Input); Assert.AreNotEqual(Input, result, "Assert that the result of transformation differs to the input."); Assert.Greater(result.IndexOfAny(PresentationSpecialCharsRepositoryTest.specialChars), -1, "Assert that any of the special characters can be found in the transformed string."); }
public void TestInterface() { var repo = new PresentationSpecialCharsRepository(); Assert.IsInstanceOf(typeof(ISpecialCharsRepository), repo, "Assert that the repository implements the expected interface."); }