Class TemplateTreeItemViewModelTests
A class that contains unit tests for the TemplateTreeItemViewModel class.
Inherited Members
Namespace: Phoenix.Plugin.Aruba.Tests
Assembly: Phoenix.Plugin.Aruba.Tests.dll
Syntax
[TestClass]
public class TemplateTreeItemViewModelTests
Constructors
View SourceTemplateTreeItemViewModelTests()
Initializes a new instance of the TemplateTreeItemViewModelTests class.
Declaration
public TemplateTreeItemViewModelTests()
Methods
View SourceTestChildrenWithNoQuerySavedUpdateWithParentQuery()
Tests that a child template without a query saved updates to sync with the parent if the parent's saved query changes.
Declaration
[TestMethod]
public void TestChildrenWithNoQuerySavedUpdateWithParentQuery()
TestChildrenWithSameQueryAsParentUpdateWithParent()
Tests that a child template with the same query saved as the parent updates to sync with the parent if the parent's saved query changes.
Declaration
[TestMethod]
public void TestChildrenWithSameQueryAsParentUpdateWithParent()
TestChildrenWithUniqueQueryDoesNotUpdate()
Tests that a child template with a unique query saved does not have its saved query overridden if the parent's query changes.
Declaration
[TestMethod]
public void TestChildrenWithUniqueQueryDoesNotUpdate()
TestComplexQueryUpdateChain()
This tests a series of steps:
- Both the child and grandchild without saved queries update with the parent as the parent changes.
- Update the child's template, and test that the child and grandchild are now different from the parent.
- Update the parent again, and test that child and grandchild did NOT update with the parent.
Declaration
[TestMethod]
public void TestComplexQueryUpdateChain()
TestGrandchildrenWithNoQuerySavedUpdateWithParentQuery()
Tests that a grandchild template without a query saved updates to sync with the parent if the parent's saved query changes.
Declaration
[TestMethod]
public void TestGrandchildrenWithNoQuerySavedUpdateWithParentQuery()
TestGrandchildrenWithSameQueryAsParentUpdateWithParent()
Tests that a grandchild template with the same query saved as the parent updates to sync with the parent if the parent's saved query changes.
Declaration
[TestMethod]
public void TestGrandchildrenWithSameQueryAsParentUpdateWithParent()
TestGrandchildrenWithUniqueQueryDoesNotUpdate()
Tests that a grandchild template with a unique query saved does not have its saved query overridden if the parent's query changes.
Declaration
[TestMethod]
public void TestGrandchildrenWithUniqueQueryDoesNotUpdate()