public void Build_should_set_correct_properties_when_model_is_populated()
        {
            var testCaseCoreModelBuilder = new TestCaseCoreModelBuilder();
            var build = testCaseCoreModelBuilder.Build(testCaseViewModel);

            Assert.AreEqual(testCaseViewModel.ErrorMessage, build.ErrorMessage);
            Assert.AreEqual(testCaseViewModel.Headers.Count, build.Headers.Count);
            Assert.AreEqual(testCaseViewModel.Id, build.Id);
            Assert.AreEqual(testCaseViewModel.LogRequest, build.LogRequest);
            Assert.AreEqual(testCaseViewModel.LogResponse, build.LogResponse);
            Assert.AreEqual(testCaseViewModel.LongDescription, build.LongDescription);
            Assert.AreEqual(testCaseViewModel.Method, build.Method);
            Assert.AreEqual(testCaseViewModel.ParentFilename, build.ParentFilename);
            Assert.AreEqual(testCaseViewModel.ParseResponses.Count, build.ParseResponses.Count);
            Assert.AreEqual(testCaseViewModel.PostBody, build.PostBody);
            Assert.AreEqual(1, build.VerifyNegatives.Count);
            Assert.AreEqual(1, build.VerifyPositives.Count);
            Assert.AreEqual(testCaseViewModel.ShortDescription, build.ShortDescription);
            Assert.AreEqual(testCaseViewModel.Url, build.Url);
            Assert.AreEqual(testCaseViewModel.Sleep, build.Sleep);
            Assert.AreEqual(testCaseViewModel.PostType.ToString(), build.PostType);
            Assert.AreEqual(testCaseViewModel.VerifyResponseCode, build.VerifyResponseCode);
        }
 public void Build_should_throw_argument_null_exception_if_view_model_is_null()
 {
     var testCaseCoreModelBuilder = new TestCaseCoreModelBuilder();
     Assert.Throws<ArgumentNullException>(() => testCaseCoreModelBuilder.Build(null));
 }