public void GetPrefix_GetCorrectParameters_ReturnNumericPrefix()
        {
            int result;
            RandomNumericPrefixHelper rnph = new RandomNumericPrefixHelper(5);

            Assert.True(Int32.TryParse(rnph.GetPrefix(), out result));
        }
        public void GetPrefix_GetCorrectParameters_ReturnNumericPrefixInCorrectRange()
        {
            RandomNumericPrefixHelper rnph = new RandomNumericPrefixHelper(4);
            int prefix = Convert.ToInt32(rnph.GetPrefix());

            Assert.True(prefix > 0);
            Assert.Less(prefix, 10000);
        }
 public void IsInstanceOfIPrefixHelperFactory_GetsPrefixLength_ReturnsInstanceOfIPrefixHelperFactory()
 {
     RandomNumericPrefixHelper rnph = new RandomNumericPrefixHelper(10);
     Assert.IsInstanceOf(typeof(IPrefixHelper), rnph);
 }
 public void GetPrefix_GetCorrectParameters_ReturnCorrectPrefix()
 {
     RandomNumericPrefixHelper rnph = new RandomNumericPrefixHelper(5);
     Assert.AreEqual(5, rnph.GetPrefix().Length);
 }