Пример #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);
        }