Beispiel #1
0
        public void GetFileData_NoDataBetweenDelimiters_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FD\u00FE";

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #2
0
        public void GetFileData_DataMissingSecondDelimiter_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FDFile Data";

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #3
0
        public void GetFileData_IncorrectFormattedData_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.Data = "RandomData";

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #4
0
        public void GetFileData_CorrectFormatData_ShouldReturnCorrectFileData()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FDFile Data\u00FE";

            cmd.GetFileData().Should().Be("File Data");
        }
Beispiel #5
0
        public void GetFileData_DataWithIncorrectDelimiterOrder_ShouldThrowException()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FEFile Data\u00FD";

            Assert.Throws <ArgumentOutOfRangeException>(
                () => { cmd.GetFileData(); });
        }
Beispiel #6
0
        public void GetFileData_EmptyData_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #7
0
        public void GetFileData_CorrectFormatData_ShouldReturnCorrectFileData()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FDFile Data\u00FE";

            cmd.GetFileData().Should().Be("File Data");
        }
Beispiel #8
0
        public void GetFileData_NoDataBetweenDelimiters_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FD\u00FE";

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #9
0
        public void GetFileData_IncorrectFormattedData_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.Data = "RandomData";

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #10
0
        public void GetFileData_EmptyData_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.GetFileData().Should().BeNullOrEmpty();
        }
Beispiel #11
0
        public void GetFileData_DataWithIncorrectDelimiterOrder_ShouldThrowException()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FEFile Data\u00FD";

            Assert.Throws<ArgumentOutOfRangeException>(
                () => { cmd.GetFileData(); });
        }
Beispiel #12
0
        public void GetFileData_DataMissingSecondDelimiter_ShouldReturnEmptyString()
        {
            var cmd = new SymCommand();

            cmd.Data = "\u00FDFile Data";

            cmd.GetFileData().Should().BeNullOrEmpty();
        }