5 instantiations of AlienBody
Microsoft.ML.Core.Tests (5)
UnitTests\TestCustomTypeRegister.cs (5)
96One = new AlienBody(0, 0, 0, 0); 97Two = new AlienBody(0, 0, 0, 0); 105One = new AlienBody(age, height, weight, handCount); 106Two = new AlienBody(anotherAge, anotherHeight, anotherWeight, anotherHandCount); 149Merged = new AlienBody(0, 0, 0, 0);
25 references to AlienBody
Microsoft.ML.Core.Tests (25)
UnitTests\TestCustomTypeRegister.cs (25)
43/// <see cref="DataViewTypeAttribute"/> applied to class <see cref="AlienBody"/> members. 50/// Create an <see cref="DataViewTypeAttribute"/> from <paramref name="raceId"/> to a <see cref="AlienBody"/>. 62DataViewTypeManager.Register(new DataViewAlienBodyType(RaceId), typeof(AlienBody), this); 88public AlienBody One { get; set; } 91public AlienBody Two { get; set; } 111/// Type of <see cref="AlienBody"/> in ML.NET's type system. 118public DataViewAlienBodyType(int id) : base(typeof(AlienBody)) 144public AlienBody Merged { get; set; } 263DataViewTypeManager.Register(a, typeof(AlienBody)); 264DataViewTypeManager.Register(a, typeof(AlienBody)); 265DataViewTypeManager.Register(b, typeof(AlienBody)); 266DataViewTypeManager.Register(b, typeof(AlienBody)); 271Assert.True(DataViewTypeManager.Knows(typeof(AlienBody))); 272Assert.Equal(a, DataViewTypeManager.GetDataViewType(typeof(AlienBody))); 273Assert.Equal(b, DataViewTypeManager.GetDataViewType(typeof(AlienBody))); 281DataViewTypeManager.Register(a, typeof(AlienBody), c); 295DataViewTypeManager.Register(new DataViewAlienBodyType(5566), typeof(AlienBody)); 306DataViewTypeManager.Register(e, typeof(AlienBody), f); 308Assert.True(DataViewTypeManager.Knows(typeof(AlienBody), new[] { f })); 310Assert.Equal(e, DataViewTypeManager.GetDataViewType(typeof(AlienBody), new[] { f })); 312Assert.NotEqual(a, DataViewTypeManager.GetDataViewType(typeof(AlienBody), new[] { f })); 324DataViewTypeManager.Register(a, typeof(AlienBody), b); 326Assert.True(DataViewTypeManager.Knows(typeof(AlienBody), new Attribute[] { b, c })); 328Assert.Equal(a, DataViewTypeManager.GetDataViewType(typeof(AlienBody), new Attribute[] { b, c })); 329Assert.Throws<ArgumentOutOfRangeException>(() => DataViewTypeManager.Knows(typeof(AlienBody), new Attribute[] { b, d }));