Exemplo n.º 1
0
        public void ConstructorTest()
        {
            const bool value = true;

            var atom = new BoolAtom(value);

            atom.Should().NotBeNull();
            atom.Type.Should().Be(AtomType.Boolean);
            atom.Value.Should().Be(value);
        }
Exemplo n.º 2
0
        public void BoolAtomDumpNullParameterTest()
        {
            const bool value = true;
            var        atom  = new BoolAtom(value);

            const string prefix = "Test";

            Action act = () => atom.Dump(null, prefix);

            act.Should().Throw <ArgumentNullException>();
        }
Exemplo n.º 3
0
        public void BoolAtomDumpTest()
        {
            var callback = false;

            var logger = A.Fake <ILogWrapper>();

            A.CallTo(() => logger.InfoFormat(A <string> .Ignored, A <object> .Ignored, A <object> .Ignored))
            .Invokes(() => callback = true);

            const bool value = true;
            var        atom  = new BoolAtom(value);

            const string prefix = "Test";

            atom.Dump(logger, prefix);

            callback.Should().BeTrue();
        }