예제 #1
0
        public void LoadTextFile_ValidNameShouldWork()
        {
            // Act
            string actual = ExampleMethods.LoadTextFile("this is a valid file path");

            // Assert
            Assert.True(actual.Length >= 10);
        }
예제 #2
0
 public void LoadTextFile_InvalidArgumentShouldThrowException()
 {
     // Assert
     Assert.Throws <ArgumentException>("filePath", () => ExampleMethods.LoadTextFile(""));
 }