public void TryGetForType() { Assert.IsTrue(ResourceManagers.TryGetForType(typeof(Properties.Resources), out var resourceManager1)); Assert.IsTrue(ResourceManagers.TryGetForType(typeof(Properties.Resources), out var resourceManager2)); Assert.AreSame(resourceManager1, resourceManager2); Assert.AreSame(resourceManager1, Properties.Resources.ResourceManager); }
public void TryGetForTypeFails() { ResourceManager temp; Assert.IsFalse(ResourceManagers.TryGetForType(typeof(ResourceManager), out temp)); }