コード例 #1
0
        protected override void Context()
        {
            _testableString = "asdf";
            _testableFoo = new TestableFoo();

            When.This(_testableFoo).IsNull.Or.When.This(_testableString).IsNull.DoThis(() => _count++).Evaluate();
        }
コード例 #2
0
 protected override void Context()
 {
     _testableFooOne = new TestableFoo("asdf", 43);
     When.This(_testableFooOne).Satisfies(fooOne => fooOne.FooInt == _fooInt)
         .DoThis(() => _actionWasPerformed = true);
 }
コード例 #3
0
        protected override void Context()
        {
            _testableFooOne = new TestableFoo();

            When.This(_testableFooOne).IsNotNull.DoThis(() => _count++).Evaluate();
        }
コード例 #4
0
        protected override void Context()
        {
            _testableFooOne = new TestableFoo();
            _testableFooTwo = _testableFooOne;

            When.This(_testableFooOne).EqualsThis(_testableFooTwo).DoThis(() => _count++).Evaluate();
        }
コード例 #5
0
        protected override void Context()
        {
            _testableFoo = new TestableFoo();

            newFoo = When.This(_testableFoo).IsNull.CreateIt();
        }
コード例 #6
0
        protected override void Context()
        {
            _testableFoo = new TestableFoo(_stringArg, _intArg);

            _testableFoo = When.This(_testableFoo).IsNull.CreateIt(_stringArg, _intArg);
        }