Exemple #1
0
        public void TestTransform()
        {
            const string Input = "Test";

            var repo = new FileSpecialCharsRepository(this.sysConfig.GetPathForFileType(DicewareFileType.Special), DicewareIndexLength.Special, this.util);

            var result = repo.Transform(Input);

            Assert.AreNotEqual(Input, result, "Assert that the result of transformation differs to the input.");
        }
Exemple #2
0
        public void TestInterface()
        {
            var repo = new FileSpecialCharsRepository(this.sysConfig.GetPathForFileType(DicewareFileType.Special), DicewareIndexLength.Special, this.util);

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