public void GivenUnitOfMeasureWhenCreatedThenMessageContainsUnitOfMeasure()
 {
     var exception = new UnitOfMeasureDoesNotExistException("NotAUnit");
     Assert.AreEqual("NotAUnit unit of measure does not exist.", exception.Message);
 }
Beispiel #2
0
        public void GivenUnitOfMeasureWhenCreatedThenMessageContainsUnitOfMeasure()
        {
            var exception = new UnitOfMeasureDoesNotExistException("NotAUnit");

            Assert.AreEqual("NotAUnit unit of measure does not exist.", exception.Message);
        }
 public void GivenUnitOfMeasureWhenCreatedThenUnitOfMeasure()
 {
     var exception = new UnitOfMeasureDoesNotExistException("");
     Assert.IsEmpty(exception.UnitOfMeasure);
 }
Beispiel #4
0
        public void GivenUnitOfMeasureWhenCreatedThenUnitOfMeasure()
        {
            var exception = new UnitOfMeasureDoesNotExistException("");

            Assert.IsEmpty(exception.UnitOfMeasure);
        }