public void Test1() { var listMonoidAdapter = MonoidAdapterRegistry.Get <string>(typeof(ListMonoid <>)); var listMonoid = (ListMonoid <string>)listMonoidAdapter.MEmpty; Assert.That(listMonoid.List, Is.Empty); }
public MonoidAdapter <TA> GetMonoidAdapter() { return(MonoidAdapterRegistry.Get <TA>(typeof(ListMonoid <>))); }