示例#1
0
        public void SplitMeasurementTest2()
        {
            var split    = new SplitFraction();
            var actual   = split.SplitMeasurementValueAndName(".75 tablespoons");
            var expected = new string[] { ".75", "tablespoons" };

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void SplitMeasurementTest()
        {
            var split    = new SplitFraction();
            var actual   = split.SplitMeasurementValueAndName("1 cup");
            var expected = new string[] { "1", "cup" };

            Assert.AreEqual(expected, actual);
        }