public void CreateDefault()
 {
     TestHelpers.EnsureLanguageIsValid();
     NoSuchProjectException exception = new NoSuchProjectException();
     Assert.AreEqual("The project '' does not exist on the CCNet server.", exception.Message);
     Assert.IsNull(exception.RequestedProject);
 }
 public void CreateWithRequestedProject()
 {
     TestHelpers.EnsureLanguageIsValid();
     string requestedProject = "Something";
     NoSuchProjectException exception = new NoSuchProjectException(requestedProject);
     Assert.AreEqual("The project 'Something' does not exist on the CCNet server.", exception.Message);
     Assert.AreEqual(requestedProject, exception.RequestedProject);
 }
 public void PassThroughSerialisation()
 {
     TestHelpers.EnsureLanguageIsValid();
     string requestedProject = "Something";
     NoSuchProjectException exception = new NoSuchProjectException(requestedProject);
     object result = TestHelpers.RunSerialisationTest(exception);
     Assert.IsNotNull(result);
     Assert.That(result, Is.InstanceOf<NoSuchProjectException>());
     Assert.AreEqual("The project 'Something' does not exist on the CCNet server.", (result as NoSuchProjectException).Message);
     Assert.AreEqual(requestedProject, (result as NoSuchProjectException).RequestedProject);
 }