Beispiel #1
0
    void MyLogic_AreSettingsValidIsTrue_WhenValuesAreSet()
    {
        var mockMyLogic = Mock <IMyLogic>();

        mockMyLogic.Setup(m =>
                          m.GetSetting(It.IsAny < string())).Returns("something");
        var mySettings = new MySettings();

        Assert(true, mySettings.AreSettingsValid(myLogic.Object));
    }