Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

unit-testing

New to Unit Testing

August 26, 2022 by Magenaut

I would like to know how to implement unit testing in an existing (quite large) application using visual studio 2008 (.net 2.0).

Categories ASP.NET, Q&A Tags .net, asp.net, unit-testing Leave a comment

How to mock application path when unit testing Web App

August 26, 2022 by Magenaut

I am testing code in a MVC HTML helper that throws an error when trying to get the application path:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, mocking, unit-testing Leave a comment

Unit test insert/update/delete

August 26, 2022 by Magenaut

I have googled this a little and didn’t really find the answer I needed.

Categories ASP.NET, Q&A Tags asp.net, c#, linq, sql-server, unit-testing Leave a comment

Using StructureMap with unit tests

August 25, 2022 by Magenaut

I’m using StructureMap in a web project for DI IOC. It works perfect, but I don’t have a clue how to write unit tests with StructureMap.

Categories ASP.NET, Q&A Tags asp.net, c#, structuremap, unit-testing Leave a comment

Unit Test for a View Attribute using Moq

August 25, 2022 by Magenaut

I am using Moq for unit testing and I would like to test for a view’s attribute.
In this case the Authorize attribute.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, moq, unit-testing Leave a comment

Adding unit testing to an existing asp.net web forms application

August 25, 2022 by Magenaut

I have an existing asp.net webforms application that I would like to add some unit testing to but am unsure of exactly how to go about it.

Categories ASP.NET, Q&A Tags asp.net, unit-testing, webforms Leave a comment

ASP.NET – How do you Unit Test WebControls?

August 24, 2022 by Magenaut

Alright.

Categories ASP.NET, Q&A Tags asp.net, unit-testing Leave a comment

Unit Test ASP.net Page_Load

August 24, 2022 by Magenaut

How can create a unit test for the the Page_Load function in ASP.net?

Categories ASP.NET, Q&A Tags asp.net, unit-testing, vb.net Leave a comment

Integration testing web services against a testing database

August 24, 2022 by Magenaut

I’m currently building a .net web application that uses WCF web services to allow a Flex front end to access the database.

Categories ASP.NET, Q&A Tags asp.net, linq, linq-to-sql, unit-testing, wcf Leave a comment

validate MOQ unit test method return value

August 23, 2022 by Magenaut

I have the below class and test class written using Moq:

Categories ASP.NET, Q&A Tags asp.net, c#, moq, unit-testing Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page6 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress