mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-10 19:06:28 +00:00
Tests - Add Artemis.Core and profile editor test suites (#907)
This commit is contained in:
1 parent
6e7fae16d2
commit
504845c7d2
168 files changed
+22914
-7
No files matched your search
@@ -0,0 +1,30 @@
|
||||
namespace Artemis.Core.Tests.Infrastructure.VisualScripting;
|
||||
|
||||
/// <summary>
|
||||
/// A node that outputs a boolean the test controls. The value is stored, so it survives saving and loading a script
|
||||
/// when the node is created through <see cref="Plugins.Nodes.TestNodeProvider" />.
|
||||
/// </summary>
|
||||
[Node("Test boolean", "Outputs a boolean controlled by the test", "Tests", OutputType = typeof(bool))]
|
||||
public class TestBooleanNode : Node<bool>
|
||||
{
|
||||
public TestBooleanNode()
|
||||
{
|
||||
Output = CreateOutputPin<bool>();
|
||||
}
|
||||
|
||||
public OutputPin<bool> Output { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value the node outputs
|
||||
/// </summary>
|
||||
public bool Value
|
||||
{
|
||||
get => Storage;
|
||||
set => Storage = value;
|
||||
}
|
||||
|
||||
public override void Evaluate()
|
||||
{
|
||||
Output.Value = Value;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user