public void Construct_GivenFilePath_ShouldNotBeNull() { //---------------Set up test pack------------------- var dropboxSoureFileValidator = new DropboxSoureFileValidator(Files.PathEmpty); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- //---------------Test Result ----------------------- Assert.IsNotNull(dropboxSoureFileValidator); }
public void Validate_GivenInvalid_ShouldThrowNotSupportedException() { //---------------Set up test pack------------------- var dropboxSoureFileValidator = new DropboxSoureFileValidator(Files.PathInvalid); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- dropboxSoureFileValidator.Validate(); //---------------Test Result ----------------------- Assert.Fail("Exception not thrown"); }
public void Validate_GivenEmptyExcplicit_ShouldThrowArgumentNull() { //---------------Set up test pack------------------- var dropboxSoureFileValidator = new DropboxSoureFileValidator(Files.PathEmptyExcpl); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- dropboxSoureFileValidator.Validate(); //---------------Test Result ----------------------- Assert.Fail("Exception not thrown"); }
public void Validate_GivenPathInValidWithColon_ShouldThrowPathTooLongException() { //---------------Set up test pack------------------- var dropboxSoureFileValidator = new DropboxSoureFileValidator(Files.PathInValidWithColon); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- dropboxSoureFileValidator.Validate(); //---------------Test Result ----------------------- Assert.Fail("Exception not thrown"); }
public void Validate_GivenTooLong_ShouldThrowPathTooLongException() { //---------------Set up test pack------------------- var dropboxSoureFileValidator = new DropboxSoureFileValidator(Files.PathToolLong); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- dropboxSoureFileValidator.Validate(); //---------------Test Result ----------------------- // EXPECTED NO EXCEPTION THROWN ON .NET FRAMEWORK 4.7 }