public void ThatUnitWithNoMultiplierCannotBeConstructed()
        {
            var group = UnitGroupTestFixtures.CreateUnitGroupMass();
            var dto   = UnitTestFixtures.GetTestUnitMilligram();

            dto.Multiplier = 0;

            AssertCreateFails(group, dto);
        }
        public void ThatUnitWithNoAbbreviationCannotBeConstructed()
        {
            var group = UnitGroupTestFixtures.CreateUnitGroupMass();
            var dto   = UnitTestFixtures.GetTestUnitMilligram();

            dto.Abbreviation = string.Empty;

            AssertCreateFails(group, dto);
        }
        public void ThatNewUnitGroupIsAssociatedWithZeroShapes()
        {
            var group = UnitGroupTestFixtures.CreateUnitGroupVolume();

            Assert.AreEqual(0, group.Shapes.Count());
        }
        public void ThatNewUnitGroupHasZeroUnits()
        {
            var group = UnitGroupTestFixtures.CreateUnitGroupVolume();

            Assert.AreEqual(0, group.Units.Count());
        }
        public void ThatUnitGroupVolumeAllowsConversion()
        {
            var group = UnitGroupTestFixtures.CreateUnitGroupVolume();

            Assert.IsTrue(group.AllowsConversion);
        }
        public void ThatUnitGroupHasNameVolume()
        {
            var group = UnitGroupTestFixtures.CreateUnitGroupVolume();

            Assert.AreEqual("volume", group.Name);
        }