2 writes to One
Microsoft.ML.Core.Tests (2)
UnitTests\TestCustomTypeRegister.cs (2)
96One = new AlienBody(0, 0, 0, 0); 105One = new AlienBody(age, height, weight, handCount);
18 references to One
Microsoft.ML.Core.Tests (18)
UnitTests\TestCustomTypeRegister.cs (18)
79/// <see cref="One"/> and <see cref="Two"/> would be mapped to different types inside ML.NET type system because they 80/// have different <see cref="AlienTypeAttributeAttribute"/>s. For example, the column type of <see cref="One"/> would 163output.Merged.Age = input.One.Age + input.Two.Age; 164output.Merged.Height = input.One.Height + input.Two.Height; 165output.Merged.Weight = input.One.Weight + input.Two.Weight; 166output.Merged.HandCount = input.One.HandCount + input.Two.HandCount; 199Assert.Equal(tribeEnumerable[0].Merged.Age, tribe[0].One.Age + tribe[0].Two.Age); 200Assert.Equal(tribeEnumerable[0].Merged.Height, tribe[0].One.Height + tribe[0].Two.Height); 201Assert.Equal(tribeEnumerable[0].Merged.Weight, tribe[0].One.Weight + tribe[0].Two.Weight); 202Assert.Equal(tribeEnumerable[0].Merged.HandCount, tribe[0].One.HandCount + tribe[0].Two.HandCount); 211Assert.Equal(superAlien.Merged.Age, alien.One.Age + alien.Two.Age); 212Assert.Equal(superAlien.Merged.Height, alien.One.Height + alien.Two.Height); 213Assert.Equal(superAlien.Merged.Weight, alien.One.Weight + alien.Two.Weight); 214Assert.Equal(superAlien.Merged.HandCount, alien.One.HandCount + alien.Two.HandCount); 234Assert.Equal(superAlien.Merged.Age, alien.One.Age + alien.Two.Age); 235Assert.Equal(superAlien.Merged.Height, alien.One.Height + alien.Two.Height); 236Assert.Equal(superAlien.Merged.Weight, alien.One.Weight + alien.Two.Weight); 237Assert.Equal(superAlien.Merged.HandCount, alien.One.HandCount + alien.Two.HandCount);