예제 #1
0
        public void CppProsesorProcessFile_TxtFileGiven_ReturnsEmptyString()
        {
            // Arrange
            var path           = @"E:\test.txt";
            var expectedResult = string.Empty;
            var processor      = new CppProcessor();

            // Act
            var actualResult = processor.ProcessFile(path);

            // Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #2
0
        public void CppProsesorProcessFile_CppFileGiven_ReturnsPathWithSlash()
        {
            // Arrange
            var path           = @"E:\test.cpp";
            var expectedResult = @"E:\test.cpp/";
            var processor      = new CppProcessor();

            // Act
            var actualResult = processor.ProcessFile(path);

            // Assert
            Assert.AreEqual(expectedResult, actualResult);
        }