Ejemplo n.º 1
0
        public void CollectPrivateOpts()
        {
            var r = new OptionsRegistry();
            var s = new OptionsBag2();

            r.Collect(new[] { s });
            var names = r.AvailableOptions.Select(o => o.Name);

            Assert.That(names, Contains.Item("private_prop"));
            Assert.That(names, Contains.Item("private_mthd"));
        }
Ejemplo n.º 2
0
        public void CollectPublicOpts()
        {
            var r = new OptionsRegistry();
            var s = new OptionsBag2();

            r.Collect(new[] { s });
            var names = r.Select(o => o.Item1);

            Assert.That(names, Contains.Item("public_prop"));
            Assert.That(names, Contains.Item("public_mthd"));
        }