Exemple #1
0
        public void add_not_uniq_context_argument()
        {
            var fixture = new Fixture();
            var context = new Context();
            var argName = fixture.Create <string>();

            context.AddArgument(argName, fixture.Create <object>());

            Assert.Throws <ArgumentException>(() => context.AddArgument(argName, fixture.Create <object>()));
        }
Exemple #2
0
        public void add_context_arguments()
        {
            var fixture = new Fixture();
            var context = new Context();

            context.AddArgument(fixture.Create <string>(), fixture.Create <object>());
        }
Exemple #3
0
        public void contains_context_argument()
        {
            var fixture = new Fixture();
            var context = new Context();
            var argName = fixture.Create <string>();

            context.AddArgument(argName, fixture.Create <object>());

            Assert.True(context.Arguments.ContainsKey(argName));
        }