public void GetFileData_NoDataBetweenDelimiters_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.Data = "\u00FD\u00FE"; cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_DataMissingSecondDelimiter_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.Data = "\u00FDFile Data"; cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_IncorrectFormattedData_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.Data = "RandomData"; cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_CorrectFormatData_ShouldReturnCorrectFileData() { var cmd = new SymCommand(); cmd.Data = "\u00FDFile Data\u00FE"; cmd.GetFileData().Should().Be("File Data"); }
public void GetFileData_DataWithIncorrectDelimiterOrder_ShouldThrowException() { var cmd = new SymCommand(); cmd.Data = "\u00FEFile Data\u00FD"; Assert.Throws <ArgumentOutOfRangeException>( () => { cmd.GetFileData(); }); }
public void GetFileData_EmptyData_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_CorrectFormatData_ShouldReturnCorrectFileData() { var cmd = new SymCommand(); cmd.Data = "\u00FDFile Data\u00FE"; cmd.GetFileData().Should().Be("File Data"); }
public void GetFileData_NoDataBetweenDelimiters_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.Data = "\u00FD\u00FE"; cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_IncorrectFormattedData_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.Data = "RandomData"; cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_EmptyData_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.GetFileData().Should().BeNullOrEmpty(); }
public void GetFileData_DataWithIncorrectDelimiterOrder_ShouldThrowException() { var cmd = new SymCommand(); cmd.Data = "\u00FEFile Data\u00FD"; Assert.Throws<ArgumentOutOfRangeException>( () => { cmd.GetFileData(); }); }
public void GetFileData_DataMissingSecondDelimiter_ShouldReturnEmptyString() { var cmd = new SymCommand(); cmd.Data = "\u00FDFile Data"; cmd.GetFileData().Should().BeNullOrEmpty(); }