public void ValidateFile_WhenContentStartsWithTypeAndHasSixSemicolonDelimiters_ThenContentIsValid()
        {
            var validator     = new FileContentsValidator();
            var type          = "03";
            var validContents = "03;123456;78;90;12;34";

            var isValid = validator.ValidateFile(type, new FileContents(validContents));

            isValid.ShouldBeTrue();
        }
        public void ValidateFile_WhenStartsWithTypeButHasMoreThanSixSemicolonDelimiters_ThenContentIsInvalid()
        {
            var validator     = new FileContentsValidator();
            var type          = "02";
            var validContents = "03;123456;78;90;12;34;17";

            var isValid = validator.ValidateFile(type, new FileContents(validContents));

            isValid.ShouldBeFalse();
        }
        public void ValidateFile_WhenTypeIsEmpty_ThenThrowsArgumentException()
        {
            var validator = new FileContentsValidator();

            Should.Throw <ArgumentException>(() => validator.ValidateFile(string.Empty, new FileContents("somecontents")));
        }