public void StoreAsVariableRandomPhone(string mask, string varName) { this.variableController.Variables.Should().NotContainKey(varName, $"переменная \"{varName}\" уже существует"); var str = fakerGenerator.Phone(mask); this.variableController.SetVariable(varName, str.GetType(), str); }
public void GetRandomPhone_CorrectParams_ReturnRandomPhone(string expectedMask) { var randomPhone = generator.Phone(expectedMask); randomPhone.Should().HaveLength(expectedMask.Length); }