Пример #1
0
		public void SetDataFrom(BinaryReader reader)
		{
			var results = new List<TestResult>();
			_project = reader.ReadString();
			_assembly = reader.ReadString();
			_timeSpent = new TimeSpan((long) reader.ReadDouble());
			var count = reader.ReadInt32();
			for (int i = 0; i < count; i++)
			{
				var result = new TestResult(TestRunStatus.Ignored, "");
				result.SetDataFrom(reader);
				results.Add(result);
			}
			_testResults = results.ToArray();
		}
Пример #2
0
        public void SetDataFrom(BinaryReader reader)
        {
            var results = new List <TestResult>();

            _project          = reader.ReadString();
            _assembly         = reader.ReadString();
            _timeSpent        = new TimeSpan((long)reader.ReadDouble());
            _isPartialTestRun = reader.ReadBoolean();
            _runner           = (TestRunner)reader.ReadInt32();
            var count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                var result = new TestResult(TestRunner.Any, TestRunStatus.Ignored, "");
                result.SetDataFrom(reader);
                results.Add(result);
            }
            _testResults = results.ToArray();
        }
 public void SetDataFrom(BinaryReader reader)
 {
     Assembly = reader.ReadString();
     Test = new TestResult(TestRunner.Any, TestRunStatus.Failed, "");
     Test.SetDataFrom(reader);
 }
Пример #4
0
 public void SetDataFrom(BinaryReader reader)
 {
     Assembly = reader.ReadString();
     Test     = new TestResult(TestRunner.Any, TestRunStatus.Passed, "");
     Test.SetDataFrom(reader);
 }