public void SetDataFrom(BinaryReader reader)
        {
            var tests = new List<LiveTestStatus>();
            CurrentAssembly = reader.ReadString();
            CurrentTest = reader.ReadString();
            TotalNumberOfTests = reader.ReadInt32();
            TestsCompleted = reader.ReadInt32();
            var count = reader.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                var test = new LiveTestStatus("", null);
                test.SetDataFrom(reader);
                tests.Add(test);
            }
            _failedTest = tests.ToArray();

            tests = new List<LiveTestStatus>();
            count = reader.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                var test = new LiveTestStatus("", null);
                test.SetDataFrom(reader);
                tests.Add(test);
            }
            _failedButNowPassing = tests.ToArray();
        }
        public void SetDataFrom(BinaryReader reader)
        {
            var tests = new List <LiveTestStatus>();

            CurrentAssembly    = reader.ReadString();
            CurrentTest        = reader.ReadString();
            TotalNumberOfTests = reader.ReadInt32();
            TestsCompleted     = reader.ReadInt32();
            var count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                var test = new LiveTestStatus("", null);
                test.SetDataFrom(reader);
                tests.Add(test);
            }
            _failedTest = tests.ToArray();

            tests = new List <LiveTestStatus>();
            count = reader.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                var test = new LiveTestStatus("", null);
                test.SetDataFrom(reader);
                tests.Add(test);
            }
            _failedButNowPassing = tests.ToArray();
        }
 public LiveTestStatusMessage(string assembly, int totalNumberOfTests, int completedTests, LiveTestStatus[] failedTests, LiveTestStatus[] failedButNowPassing)
 {
     CurrentAssembly = assembly;
     TotalNumberOfTests = totalNumberOfTests;
     TestsCompleted = completedTests;
     _failedTest = failedTests;
     _failedButNowPassing = failedButNowPassing;
 }