Exemplo n.º 1
0
    public void BecomeSelectable_WhenCalledWhileThisIsSelected_ThisBecomesSelectableAndNotSelected()
    {
        TestSelStateEngineConstArg   arg;
        TestSelectabilityStateEngine engine = CreateTestSelectabilityStateEngine(out arg);

        engine.BecomeSelected();
        Assert.That(engine.IsSelected(), Is.True);

        engine.BecomeSelectable();

        Assert.That(engine.IsSelectable(), Is.True);
        Assert.That(engine.IsSelected(), Is.False);
    }
Exemplo n.º 2
0
    public void Constructor_WhenCreated_ThisIsSelectable()
    {
        TestSelStateEngineConstArg   arg;
        TestSelectabilityStateEngine engine = CreateTestSelectabilityStateEngine(out arg);

        Assert.That(engine.IsSelected(), Is.False);
        Assert.That(engine.IsSelectable(), Is.True);
    }