public void SetDataFrom(BinaryReader reader) { _errorsToAdd = new List<CacheBuildMessage>(); _errorsToRemove = new List<CacheBuildMessage>(); _warningsToAdd = new List<CacheBuildMessage>(); _warningsToRemove = new List<CacheBuildMessage>(); _failedToAdd = new List<CacheTestMessage>(); _ignoredToAdd = new List<CacheTestMessage>(); _testsToRemove = new List<CacheTestMessage>(); var errors = reader.ReadInt32(); for (int i = 0; i < errors; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _errorsToAdd.Add(message); } errors = reader.ReadInt32(); for (int i = 0; i < errors; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _errorsToRemove.Add(message); } var warnings = reader.ReadInt32(); for (var i = 0; i < warnings; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _warningsToAdd.Add(message); } warnings = reader.ReadInt32(); for (var i = 0; i < warnings; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _warningsToRemove.Add(message); } var failed = reader.ReadInt32(); for (var i = 0; i < failed; i++) { var result = new CacheTestMessage("", null); result.SetDataFrom(reader); _failedToAdd.Add(result); } var ignored = reader.ReadInt32(); for (var i = 0; i < ignored; i++) { var result = new CacheTestMessage("", null); result.SetDataFrom(reader); _ignoredToAdd.Add(result); } ignored = reader.ReadInt32(); for (var i = 0; i < ignored; i++) { var result = new CacheTestMessage("", null); result.SetDataFrom(reader); _testsToRemove.Add(result); } }
public void SetDataFrom(BinaryReader reader) { _errorsToAdd = new List <CacheBuildMessage>(); _errorsToRemove = new List <CacheBuildMessage>(); _warningsToAdd = new List <CacheBuildMessage>(); _warningsToRemove = new List <CacheBuildMessage>(); _failedToAdd = new List <CacheTestMessage>(); _ignoredToAdd = new List <CacheTestMessage>(); _testsToRemove = new List <CacheTestMessage>(); var errors = reader.ReadInt32(); for (int i = 0; i < errors; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _errorsToAdd.Add(message); } errors = reader.ReadInt32(); for (int i = 0; i < errors; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _errorsToRemove.Add(message); } var warnings = reader.ReadInt32(); for (var i = 0; i < warnings; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _warningsToAdd.Add(message); } warnings = reader.ReadInt32(); for (var i = 0; i < warnings; i++) { var message = new CacheBuildMessage("", null); message.SetDataFrom(reader); _warningsToRemove.Add(message); } var failed = reader.ReadInt32(); for (var i = 0; i < failed; i++) { var result = new CacheTestMessage("", null); result.SetDataFrom(reader); _failedToAdd.Add(result); } var ignored = reader.ReadInt32(); for (var i = 0; i < ignored; i++) { var result = new CacheTestMessage("", null); result.SetDataFrom(reader); _ignoredToAdd.Add(result); } ignored = reader.ReadInt32(); for (var i = 0; i < ignored; i++) { var result = new CacheTestMessage("", null); result.SetDataFrom(reader); _testsToRemove.Add(result); } }