Exemplo n.º 1
0
        public void LoadFromString_WithNullStringInput_ShouldThrowArgumentNullException()
        {
            string input      = null;
            var    option     = new BypassFileExtensionOption();
            Action testAction = () => option.LoadFromString(input);

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

            option.LoadFromString(input);

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