public void ShouldConvertStringToInt()
        {
            var conversion = new Conversion("");
            var theValueOfTheStringInInteger = conversion.GetTheValueOfTheStringInInteger("");

            Assert.That(theValueOfTheStringInInteger,Is.EqualTo(0));
        }
        public void ShouldReturnDelimetedarrayValue()
        {
            var conversion = new Conversion("");
            var theDelimitedValue = conversion.GetTheDelimitedValue();

            Assert.That(theDelimitedValue.Count, Is.EqualTo(1));
        }
 public void ShouldCreateAConversionObject()
 {
     var conversion = new Conversion("1");
     Assert.That(conversion,Is.Not.Null);
 }
Example #4
0
 public StringCalculator(string input)
 {
     _conversion = new Conversion(input);
 }