Skip to content

Commit

Permalink
Fixed unit test to correctly detect the 2 plugin types now there is a…
Browse files Browse the repository at this point in the history
… custom api test
  • Loading branch information
scottdurow committed Jan 30, 2021
1 parent 4746411 commit 203181a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spkl/SparkleXrm.Tasks.Tests/ImportCodeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void RegisterPluginCode()

#region Assert
Assert.AreEqual(1, created.Where(a => a.GetType() == typeof(PluginAssembly)).Count(), "1 Assembly");
Assert.AreEqual(1, created.Where(a => a.GetType() == typeof(PluginType)).Count(), "1 Type");
Assert.AreEqual(2, created.Where(a => a.GetType() == typeof(PluginType)).Count(), "2 Types (plugin & custom API)");
Assert.AreEqual(4, created.Where(a => a.GetType() == typeof(SdkMessageProcessingStep)).Count(), "4 Steps");
var step1 = created.Where(a => a.GetType() == typeof(SdkMessageProcessingStep)).FirstOrDefault().ToEntity<SdkMessageProcessingStep>();
Assert.AreEqual(step1.Name, "Pre-Update of account", "Name check");
Expand Down

0 comments on commit 203181a

Please sign in to comment.