public void StoreAsVariableRandomNumberWithPrefix(int len, string prefix, string varName)
        {
            this.variableController.Variables.Should().NotContainKey(varName, $"переменная \"{varName}\" уже существует");
            len.Check(prefix, string.Empty);

            var str = prefix + fakerGenerator.Numbers(len - prefix.Length);

            this.variableController.SetVariable(varName, str.GetType(), str);
        }
Example #2
0
        public void GetRandomNumbers_CorrectParams_ReturnRandomString(int expectedLength)
        {
            var randomString = generator.Numbers(expectedLength);

            randomString.Should().HaveLength(expectedLength);
        }