Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

From where does Environment.GetEnvironmentVariable pick its value in nunit and referenced blazor web assembly

$
0
0

I was actually trying this code section in NUnit .

using NUnit.Framework;namespace BlazorClientApp.Tests{    public class CounterTests    {        [Test]        public void CounterComponent_ShouldHaveInitialCountZero()        {            var envVariable = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");            Assert.AreEqual("MyCheck", envVariable);        }    }}

I have already referenced this nunit project with my blazor wasm project.Here i was expecting that it will give me wasm environment variable but it's returning null what could be the reason.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>