示例#1
0
 public void LogUpdate_Load_TextReader_FromClientVersion_7_1_24()
 {
     using (var reader = new StreamReader(TestDataReader.ReadStream("Client_7_1_24_log-restart.txt")))
     {
         var logUpdate = LogUpdate.Load(reader);
         Assert.AreEqual(65571, logUpdate.Value.Length);
     }
 }
示例#2
0
 public void LogUpdate_Load_ReturnsNullWhenJsonTextReaderIsNull()
 {
     Assert.IsNull(LogUpdate.Load((TextReader)null));
 }
示例#3
0
 public void LogUpdate_Load_ReturnsNullWhenJsonStringBuilderIsNull()
 {
     Assert.IsNull(LogUpdate.Load((StringBuilder)null));
 }
示例#4
0
 public void LogUpdate_Load_ReturnsNullWhenJsonStringIsNull()
 {
     Assert.IsNull(LogUpdate.Load((string)null));
 }
示例#5
0
        public void LogUpdate_Load_StringBuilder_FromClientVersion_7_1_24()
        {
            var logUpdate = LogUpdate.Load(TestDataReader.ReadStringBuilder("Client_7_1_24_log-restart.txt"));

            Assert.AreEqual(65571, logUpdate.Value.Length);
        }
示例#6
0
        public void LogUpdate_Load_String_FromClientVersion_7_1_24()
        {
            var logUpdate = LogUpdate.Load(TestDataReader.ReadString("Client_7_1_24_log-restart.txt"), ObjectLoadOptions.None);

            Assert.AreEqual(65571, logUpdate.Value.Length);
        }