Bytes2you.Validation.UnitTests.ValidatableArgumentTests.Constructors_Should.SetAllGivenProperties C# (CSharp) Method

SetAllGivenProperties() private method

private SetAllGivenProperties ( ) : void
return void
        public void SetAllGivenProperties()
        {
            // Arrange.
            string name = "name";
            int value = 5;

            // Act.
            ValidatableArgument<int> argument = new ValidatableArgument<int>(name, value);

            // Assert.
            Assert.AreEqual(name, argument.Name);
            Assert.AreEqual(value, argument.Value);
            Assert.IsFalse(argument.ValidationPredicates.Any());
        }