Ejemplo n.º 1
0
        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.");
        }
Ejemplo n.º 2
0
        public void TestInterface()
        {
            var repo = new PresentationSpecialCharsRepository();

            Assert.IsInstanceOf(typeof(ISpecialCharsRepository), repo, "Assert that the repository implements the expected interface.");
        }