We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fc444 commit 0248eb5Copy full SHA for 0248eb5
5 files changed
src/PluginMetadata.cs
@@ -36,7 +36,7 @@ public required string Name
36
/// <summary>
37
/// Gets or sets the version of the plugin.
38
/// </summary>
39
- public required PluginVersion Version { get; set; }
+ public required Version Version { get; set; }
40
41
42
/// Gets or sets the name of the company that created the plugin.
src/PluginVersion.cs
tests/PluginMetadataTests.cs
@@ -10,7 +10,7 @@ public void TypeProperty_ReturnsCorrectFormat()
10
{
11
Id = Guid.NewGuid(),
12
Name = "MyPlugin",
13
- Version = new PluginVersion(1, 0, 0),
+ Version = new Version(1, 0, 0),
14
Category = PluginCategory.Api,
15
CompanyName = "Test",
16
MinimumFlowSynxVersion = new Version(1, 0, 0)
@@ -28,7 +28,7 @@ public void Properties_AreAssignedCorrectly()
28
29
// Arrange
30
var id = Guid.NewGuid();
31
- var version = new PluginVersion(1, 2, 3);
+ var version = new Version(1, 2, 3);
32
var category = PluginCategory.Api;
33
34
var metadata = new PluginMetadata
@@ -63,7 +63,7 @@ public void TypeProperty_HandlesDifferentNamespacesAndNames()
63
64
65
Name = "Processor",
66
- Version = new PluginVersion(0, 1, 1),
+ Version = new Version(0, 1, 1),
67
Category = PluginCategory.AI,
68
69
tests/PluginTests.cs
@@ -27,7 +27,7 @@ public void Metadata_IsNotNullAndHasCorrectValues()
27
// Assert
Assert.NotNull(plugin.Metadata);
Assert.Equal("FakePlugin", plugin.Metadata.Name);
- Assert.Equal(new PluginVersion(1, 0, 0), plugin.Metadata.Version);
+ Assert.Equal(new Version(1, 0, 0), plugin.Metadata.Version);
Assert.Equal("Test", plugin.Metadata.Authors[0]);
}
@@ -98,7 +98,7 @@ public FakePlugin()
98
99
100
Name = "FakePlugin",
101
102
103
Authors = new List<string> { "Test" },
104
tests/PluginVersionTests.cs
0 commit comments