Update mocks (#967)

This commit is contained in:
Pepe Rivera
2020-02-06 15:15:29 -08:00
committed by GitHub
parent 4b9d6e9799
commit 724d12b762
2 changed files with 51 additions and 1 deletions

View File

@@ -18,6 +18,14 @@ namespace MockGraphingImpl
}
virtual std::optional<std::vector<std::shared_ptr<Graphing::IEquation>>> TryInitialize(const Graphing::IExpression* graphingExp = nullptr)
{
if (graphingExp != nullptr)
{
std::vector<std::shared_ptr<Graphing::IEquation>> equations;
equations.push_back(nullptr);
m_variables.push_back(std::make_shared<MockVariable>(MockVariable{}));
return std::optional<std::vector<std::shared_ptr<Graphing::IEquation>>>(equations);
}
return std::nullopt;
}