¡@

Home 

c# Programming Glossary: testing

Design - Where should objects be registered when using Windsor

http://stackoverflow.com/questions/1410719/design-where-should-objects-be-registered-when-using-windsor

the excellent xUnit Test Patterns that doesn't need unit testing in itself. Your tests should not need the container at all as..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

for Unit Testing How can a IoC Container be used for unit testing Is it useful to manage mocks in a huge solution 50 projects.. that work well for using it in unit tests c# unit testing mocking inversion of control share improve this question .. speaking a DI Container should not be necessary for unit testing because unit testing is all about separating responsibilities...

how can you easily check if access is denied for a file in .NET?

http://stackoverflow.com/questions/265953/how-can-you-easily-check-if-access-is-denied-for-a-file-in-net

first. Yet strangely enough it will never happen in your testing or development environments which tend to be fairly static...

Code Coverage for C#/.NET [closed]

http://stackoverflow.com/questions/276829/code-coverage-for-c-net

indicators in Visual Studio Continuous near real time testing Visual per test code coverage Performance metrics parallell..

Why is it important to override GetHashCode when Equals method is overridden?

http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden

FooId is a suitable GetHashCode implementation. If you are testing multiple properties it is common to combine them using code..

What C# mocking framework to use? [closed]

http://stackoverflow.com/questions/37359/what-c-sharp-mocking-framework-to-use

favourite .NET mocking framework and why c# .net unit testing mocking share improve this question I've not used most of..

How to check if an object is nullable?

http://stackoverflow.com/questions/374651/how-to-check-if-an-object-is-nullable

you can with generics so how about below. This is actually testing type T but using the obj parameter purely for generic type inference..

What static analysis tools are available for C#? [closed]

http://stackoverflow.com/questions/38635/what-static-analysis-tools-are-available-for-c

is primarily my interest for static analysis tools for testing code for multithreading issues deadlocks race conditions etc...

DateTime vs DateTimeOffset

http://stackoverflow.com/questions/4331189/datetime-vs-datetimeoffset

and are therefore equivalent. If you are doing any unit testing and need to be certain of the offset test both the DateTimeOffset..

How to read a text file reversely with iterator in C#

http://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c-sharp

can specify a different buffer size this is useful for testing. summary private const int DefaultBufferSize 4096 summary Means..

Multi-threaded splash screen in C#?

http://stackoverflow.com/questions/48916/multi-threaded-splash-screen-in-c

to populate some drop downs. I also want to do some basic testing for dependencies before loading that is the web service is available..

How do I get the path of the assembly the code is in?

http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in

path to always resolve correctly regardless of whether the testing dll is run from TestDriven.NET the MbUnit GUI or something else... the following property as we use this often in unit testing. static public string AssemblyDirectory get string codeBase..

Executing Batch File in C#

http://stackoverflow.com/questions/5519328/executing-batch-file-in-c-sharp

process.Close static void Main ExecuteCommand echo testing EDIT Given the extra information in your comment below I was..

Very slow compile times on Visual Studio 2005

http://stackoverflow.com/questions/55517/very-slow-compile-times-on-visual-studio-2005

used just for compile time performance WORKAROUND We are testing the practice of building new areas of the application in new..

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing

up a new project at work and want to get into unit testing. We will be using VS 2008 C# and the ASP.NET MVC stuff. I am.. and suggestions c# asp.net mvc visual studio 2008 unit testing nunit share improve this question Daok named all the pro's..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

IoC for Unit Testing How can a IoC Container be used for unit testing Is it useful..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

issues up by passing delegates instead of interfaces . Testing This basically goes hand in hand with the interface woes mentioned..

Finding an enum value by its Description Attribute [duplicate]

http://stackoverflow.com/questions/3422407/finding-an-enum-value-by-its-description-attribute

attribute. So if I have an enum declared as follows enum Testing Description David Gouge Dave 1 Description Peter Gouge Pete.. descriptionToMatch Peter Gouge FieldInfo fields typeof Testing .GetFields foreach FieldInfo field in fields if field.GetCustomAttributes.. this question Using the extension method described here Testing t Enum.GetValues typeof Testing .Cast Testing .FirstOrDefault..

System.Drawing in Windows or ASP.NET services

http://stackoverflow.com/questions/390532/system-drawing-in-windows-or-asp-net-services

being popped when there's no desktop to show them on. Testing will take care of the latter and monitoring will alert you to..

How do I make a WPF window movable by dragging the extended window frame?

http://stackoverflow.com/questions/5493149/how-do-i-make-a-wpf-window-movable-by-dragging-the-extended-window-frame

on any fully transparent regions of the background see Hit Testing in the Visual Layer . In that case you'll want to ignore hits..

Testing Equality of Arrays in C#

http://stackoverflow.com/questions/649444/testing-equality-of-arrays-in-c-sharp

Equality of Arrays in C# I have two arrays. For example int..

How to find all possible subsets of a given array?

http://stackoverflow.com/questions/679203/how-to-find-all-possible-subsets-of-a-given-array

t and not test any which are proper supersets of those. Testing whether set number x is a superset of set y can be achieved..

What task is best done in a functional programming style?

http://stackoverflow.com/questions/694651/what-task-is-best-done-in-a-functional-programming-style

first var evalSecond eval.Eval second Console.WriteLine Testing expressions Console.WriteLine First 0 prettyPrinter.Pretty.. e1 e2 let eval1 eval2 eval e1 eval e2 printfn Testing expressions printfn First s prettyPrint e1 printfn eval e1 b..

Is it appropriate to extend Control to provide consistently safe Invoke/BeginInvoke functionality?

http://stackoverflow.com/questions/714666/is-it-appropriate-to-extend-control-to-provide-consistently-safe-invoke-begininv

returns true IsHandleCreated will always be true. Testing it again is redundant and incorrect. c# winforms control extension..

Event Bubbling and MVP: ASP.NET

http://stackoverflow.com/questions/8851933/event-bubbling-and-mvp-asp-net

The expectation is to create MVP that is easy to do Unit Testing and does not violate MVP architecure. Note Though this is a..

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing

vs Visual Studio 2008's Test Projects for Unit Testing closed I am going to be starting up a new project at work and..

What is quicker, switch on string or elseif on type?

http://stackoverflow.com/questions/94305/what-is-quicker-switch-on-string-or-elseif-on-type

reflection. Here are some quick timings on my machine Testing 3 iterations with 5 000 000 data elements mode Random and 5.. 178.85 TypeDictionary 377.67 210.20 Switch 492.67 274.21 Testing 3 iterations with 5 000 000 data elements mode Random and 10.. 114.99 TypeDictionary 374.33 137.96 Switch 490.33 180.71 Testing 3 iterations with 5 000 000 data elements mode Random and 15..