Exemple #1
0
        public void Test_IfDetectorReturnsFalseIfWcfClientSectionDoesNotExists()
        {
            File.WriteAllText(testFilePath, clientNotExistsConfigText);
            var detector = new ClientDetector(testFilePath);

            Assert.False(detector.Find());
        }
Exemple #2
0
        public void Test_IfDetectorReturnsTrueIfWcfClientExists()
        {
            File.WriteAllText(testFilePath, clientExistsConfigText);
            var detector = new ClientDetector(testFilePath);

            Assert.True(detector.Find());
        }