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

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

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

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