public void TestDetermineStartByteFromRangeNullHeaderValue() { // Arrange string rangeHeader = null; int startByte = 0; // Act startByte = KinveyFileRequest.DetermineStartByteFromRange(rangeHeader); // Assert Assert.IsTrue(startByte == 0); }
public void TestDetermineStartByteFromRange() { // Arrange string rangeHeader = "bytes=0-42"; int startByte = 0; // Act startByte = KinveyFileRequest.DetermineStartByteFromRange(rangeHeader); // Assert Assert.IsTrue(startByte == 43); }