public void FromStringThrowsOnNoToken() { TestEntry entryWithNoTag = TestEntry.Create(); string requestString = JsonConvert.SerializeObject(entryWithNoTag); Assert.Throws <ArgumentException>(() => QueueEntry.FromRequestString(new QueueContext("x"), requestString, Int32.MaxValue)); }
public void FromBytesThrowsOnNoToken() { TestEntry entryWithNoTag = TestEntry.Create(); byte[] bytes = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(entryWithNoTag)); Assert.Throws <ArgumentException>(() => QueueEntry.FromBytes(bytes)); }