예제 #1
0
        public void LoadFromString_WithNullStringInput_ShouldThrowArgumentNullException()
        {
            string input      = null;
            var    option     = new BypassFileExtensionOption();
            Action testAction = () => option.LoadFromString(input);

            testAction.ShouldThrow <ArgumentNullException>();
        }
예제 #2
0
        public void LoadFromString_WithValidFilePath_StringValueShouldMatchInput()
        {
            string input  = "/test/file.txt";
            var    option = new BypassFileExtensionOption();

            option.LoadFromString(input);

            option.GetStringValue()
            .ShouldBe(input);
        }