Ejemplo n.º 1
0
        public void CheckExceptionIsThrown_WhenCallingGetLocalizedAssetAsync_WithDefaltTableReference_WhenIsEmptyOrNull()
        {
            var ex = Assert.Throws <System.Exception>(() => m_Settings.GetAssetDatabase().GetLocalizedAssetAsync <Texture>("Test Entry 1"));

            Assert.That(ex.Message, Is.EqualTo($"Trying to get the DefaultTable however the {m_TempAssetDatabase.GetType().Name} DefaulTable value has not been set. This can be configured in the Localization Settings."));
        }