public void SetFieldValue() { var testEntity = new TestEntity(new NestedEntity()); testEntity.Field("yo").SetValue("5"); Assert.That(testEntity.NestedEntity.Yo, Is.EqualTo("5")); Assert.That(testEntity.Field("bo"), Is.EqualTo(null)); }
public void SetFieldValue() { var testEntity = new TestEntity(new NestedEntity()); testEntity.Field("yo").SetValue("5"); Assert.Equal("5", testEntity.NestedEntity.Yo); Assert.Equal(null, testEntity.Field("bo")); }
public void To_String() { var list = new Entities<Entity>(); var nestedEntity = new NestedEntity(); var testEntity = new TestEntity(nestedEntity); nestedEntity.Yo = "7"; testEntity.Zo = "8"; list.Add(testEntity); var builder = new StringBuilder(); builder.AppendLine("ZO, YO, "); builder.AppendLine("8, 7, "); Assert.That(list.ToString(), Is.EqualTo(builder.ToString())); }
public void Create() { var testEntity = new TestEntity(new NestedEntity()); Assert.That(new NestedEntities(testEntity), Has.Count.EqualTo(2)); }
public void Header() { var nestedEntity = new NestedEntity(); var testEntity = new TestEntity(nestedEntity); Assert.Equal("ZO, YO, ", testEntity.Header); }
public void To_String() { var nestedEntity = new NestedEntity {Yo = "7"}; var testEntity = new TestEntity(nestedEntity) {Zo = "8"}; Assert.Equal("zo=8, nestedEntity=yo=7, ", testEntity.ToString()); }
public void Create() { var testEntity = new TestEntity(new NestedEntity()); Assert.Equal(2, new NestedEntities(testEntity).Count); }
public void Header() { var nestedEntity = new NestedEntity(); var testEntity = new TestEntity(nestedEntity); Assert.That(testEntity.Header, Is.EqualTo("ZO, YO, ")); }