コード例 #1
0
        public void SerializeData_DoesNotAppendEntry_ForNullResult()
        {
            var state = new SucceededState(null, 0, 0);

            var data = state.SerializeData();

            Assert.False(data.ContainsKey("Result"));
        }
コード例 #2
0
        public void SerializeData_CorrectlyHandlesResults_ThatCantBeSerialized()
        {
            var process = new Process();
            var state = new SucceededState(process, 0, 0);

            var data = state.SerializeData();

            Assert.Contains("Can not serialize", data["Result"]);
        }