Show / Hide Table of Contents

Class TemplateTreeItemViewModelTests

A class that contains unit tests for the TemplateTreeItemViewModel class.

Inheritance
object
TemplateTreeItemViewModelTests
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Plugin.Aruba.Tests
Assembly: Phoenix.Plugin.Aruba.Tests.dll
Syntax
[TestClass]
public class TemplateTreeItemViewModelTests

Constructors

View Source

TemplateTreeItemViewModelTests()

Initializes a new instance of the TemplateTreeItemViewModelTests class.

Declaration
public TemplateTreeItemViewModelTests()

Methods

View Source

TestChildrenWithNoQuerySavedUpdateWithParentQuery()

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()
View Source

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()
View Source

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()
View Source

TestComplexQueryUpdateChain()

This tests a series of steps:

  1. Both the child and grandchild without saved queries update with the parent as the parent changes.
  2. Update the child's template, and test that the child and grandchild are now different from the parent.
  3. Update the parent again, and test that child and grandchild did NOT update with the parent.
Declaration
[TestMethod]
public void TestComplexQueryUpdateChain()
View Source

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()
View Source

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()
View Source

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()
  • View Source
In this article
Back to top Generated by DocFX