public void TryGetWithEmptyAttribute() { AmplaModules?module; bool result = AmplaModuleAttribute.TryGetModule <ModelWithEmptyModule>(out module); Assert.That(module, Is.EqualTo(null)); Assert.That(result, Is.False); }
public void TryGetInheritedWithModule() { AmplaModules?module; bool result = AmplaModuleAttribute.TryGetModule <InheritedModelWithModule>(out module); Assert.That(module, Is.EqualTo(AmplaModules.Production)); Assert.That(result, Is.True); }
public void TryGetOverriddenModelWithModule() { AmplaModules?module; bool result = AmplaModuleAttribute.TryGetModule <OverriddenModelWithModule>(out module); Assert.That(module, Is.EqualTo(AmplaModules.Quality)); Assert.That(result, Is.True); }
public void TryGetWithConstructorModule() { AmplaModules?module; bool result = AmplaModuleAttribute.TryGetModule <ModelModuleViaConstructor>(out module); Assert.That(module, Is.EqualTo(AmplaModules.Production)); Assert.That(result, Is.True); }