Skip to content

Commit

Permalink
Corrected tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crisfervil committed Aug 22, 2018
1 parent 6cd3e07 commit b58edad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/XrmCommandBox.Tests/Data/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ public void Converts_To_Data_Table()
var entity1 = new Entity("myEntity1");
entity1["attr1"] = "Value1";
entity1["attr2"] = new EntityReference("myEntity2", referenceGuid1) {Name = "My test value"};
entity1.FormattedValues["statecode"] = "state1";
data.Entities.Add(entity1);

var entity2 = new Entity("myEntity1");
entity2["attr1"] = new OptionSetValue(12);
entity2["attr2"] = new Money(16.55m);
entity2.FormattedValues["statecode"] = "state1";
entity2.FormattedValues["attr1"] = "option1";
data.Entities.Add(entity2);

var dt = data.AsDataTable();
Expand Down
2 changes: 2 additions & 0 deletions src/XrmCommandBox.Tests/Tools/ExportToolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ public void Exports_Accounts_Xml()
var account1 = new Entity("account");
account1.Id = Guid.NewGuid();
account1["name"] = "Account1";
account1.FormattedValues["statecode"] = "state1";

var account2 = new Entity("account");
account2.Id = Guid.NewGuid();
account2["name"] = "Account2";
account2.FormattedValues["statecode"] = "state1";

var accounts = new List<Entity> {account1, account2};
context.Initialize(accounts);
Expand Down

0 comments on commit b58edad

Please sign in to comment.