2 writes to Two
Microsoft.ML.Core.Tests (2)
UnitTests\TestCustomTypeRegister.cs (2)
97
Two
= new AlienBody(0, 0, 0, 0);
106
Two
= new AlienBody(anotherAge, anotherHeight, anotherWeight, anotherHandCount);
17 references to Two
Microsoft.ML.Core.Tests (17)
UnitTests\TestCustomTypeRegister.cs (17)
79
/// <see cref="One"/> and <see cref="
Two
"/> would be mapped to different types inside ML.NET type system because they
163
output.Merged.Age = input.One.Age + input.
Two
.Age;
164
output.Merged.Height = input.One.Height + input.
Two
.Height;
165
output.Merged.Weight = input.One.Weight + input.
Two
.Weight;
166
output.Merged.HandCount = input.One.HandCount + input.
Two
.HandCount;
199
Assert.Equal(tribeEnumerable[0].Merged.Age, tribe[0].One.Age + tribe[0].
Two
.Age);
200
Assert.Equal(tribeEnumerable[0].Merged.Height, tribe[0].One.Height + tribe[0].
Two
.Height);
201
Assert.Equal(tribeEnumerable[0].Merged.Weight, tribe[0].One.Weight + tribe[0].
Two
.Weight);
202
Assert.Equal(tribeEnumerable[0].Merged.HandCount, tribe[0].One.HandCount + tribe[0].
Two
.HandCount);
211
Assert.Equal(superAlien.Merged.Age, alien.One.Age + alien.
Two
.Age);
212
Assert.Equal(superAlien.Merged.Height, alien.One.Height + alien.
Two
.Height);
213
Assert.Equal(superAlien.Merged.Weight, alien.One.Weight + alien.
Two
.Weight);
214
Assert.Equal(superAlien.Merged.HandCount, alien.One.HandCount + alien.
Two
.HandCount);
234
Assert.Equal(superAlien.Merged.Age, alien.One.Age + alien.
Two
.Age);
235
Assert.Equal(superAlien.Merged.Height, alien.One.Height + alien.
Two
.Height);
236
Assert.Equal(superAlien.Merged.Weight, alien.One.Weight + alien.
Two
.Weight);
237
Assert.Equal(superAlien.Merged.HandCount, alien.One.HandCount + alien.
Two
.HandCount);