apereo/dotnet-cas-client

Implement unit testing.

Opened this issue · 4 comments

I think it would be beneficial to implement unit testing in general so that we can use it to validate code and intended behavior in certain places.

The first tests I'd like us to create would be to validate #53

Due to limitations in Visual Studio (even 2017), we aren't going to be able to run multi-targeted tests within Visual Studio in the Test Explorer ;(

https://github.com/nunit/docs/wiki/.NET-Core-and-.NET-Standard#my-tests-multi-target-net-core-and-net-framework-why-cant-i-run-both-in-visual-studio

We'll have to drop to the CLI and run the dotnet test command with the --framework.

The build script will already be doing this anyways so there is no problem there. It's more of a papercut for us devs. My impression is the Test Explorer was designed in mind for the masses which don't usually have multi-targeted projects to the extend we do, or will have once we add .NET Core support.

c'est la vie

My comment immediately above applies for any test framework including xUnit, NUnit, and MS Test.

For right now I'm just going to focus on implementing the unit testing with just the .NET Framework in mind. I'll worry about unit testing everything when we eventually add .NET Core support into the mix.

Sir,

I am trying to set up the ExampleWebSite. It gave me this error message
&&&&&&&&&&&&&&&&&&&&&&&&&&&&
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Can you help me? What is wrong in my web.config?
This is the lines I edited in the file:
##########################################
<casClientConfig
casServerLoginUrl="https://login.vcu.edu/cas/login"
casServerUrlPrefix="https://login.vcu.edu/cas/"
serverName="donghai.vcu.edu/CAS1.1/ExampleWebSite/"
............
<forms
loginUrl="https://login.vcu.edu/cas/login"
##########################################

Thanks.