Пример #1
0
        protected override void Context()
        {
            _testableString = "asdf";
            _testableFoo = new TestableFoo();

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

            When.This(_testableFooOne).IsNotNull.DoThis(() => _count++).Evaluate();
        }
        protected override void Context()
        {
            _testableFooOne = new TestableFoo();
            _testableFooTwo = _testableFooOne;

            When.This(_testableFooOne).EqualsThis(_testableFooTwo).DoThis(() => _count++).Evaluate();
        }
        protected override void Context()
        {
            _testableFoo = new TestableFoo();

            newFoo = When.This(_testableFoo).IsNull.CreateIt();
        }
        protected override void Context()
        {
            _testableFoo = new TestableFoo(_stringArg, _intArg);

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