Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
Questionwindows service - timer [modified] Pin
tai-fun23-May-08 23:24
tai-fun23-May-08 23:24 
AnswerRe: windows service - timer Pin
Giorgi Dalakishvili24-May-08 0:59
mentorGiorgi Dalakishvili24-May-08 0:59 
QuestionApplication.Exit();, Environment.Exit(0); or this.Close(); Pin
Vandretta23-May-08 23:23
Vandretta23-May-08 23:23 
AnswerRe: Application.Exit();, Environment.Exit(0); or this.Close(); Pin
Giorgi Dalakishvili24-May-08 1:02
mentorGiorgi Dalakishvili24-May-08 1:02 
AnswerRe: Application.Exit();, Environment.Exit(0); or this.Close(); Pin
PIEBALDconsult24-May-08 3:35
mvePIEBALDconsult24-May-08 3:35 
GeneralRe: Application.Exit();, Environment.Exit(0); or this.Close(); Pin
Vandretta24-May-08 16:05
Vandretta24-May-08 16:05 
QuestionMocking objects Pin
N a v a n e e t h23-May-08 21:53
N a v a n e e t h23-May-08 21:53 
AnswerRe: Mocking objects Pin
Colin Angus Mackay23-May-08 23:22
Colin Angus Mackay23-May-08 23:22 
Unless the files are quite small, I find mocking the file access to be extremely tedious. What you need is to add the XML files into your test project and have them copied into the bin directory (Right click the XML file in the project and click properties. One of the properties gives you an option to Copy Always to the build/output directory).

You also need one XML file per test so that there is no need for other developers to be changing the files unless they are updating the test. Sometimes you may find that a groups of tests will need to work on the same file. That is fine if you make that clear.


GeneralRe: Mocking objects Pin
N a v a n e e t h24-May-08 7:22
N a v a n e e t h24-May-08 7:22 
GeneralRe: Mocking objects Pin
Colin Angus Mackay24-May-08 8:49
Colin Angus Mackay24-May-08 8:49 
GeneralRe: Mocking objects Pin
N a v a n e e t h24-May-08 9:02
N a v a n e e t h24-May-08 9:02 
GeneralRe: Mocking objects Pin
Colin Angus Mackay24-May-08 9:31
Colin Angus Mackay24-May-08 9:31 
GeneralRe: Mocking objects Pin
N a v a n e e t h24-May-08 18:13
N a v a n e e t h24-May-08 18:13 
GeneralRe: Mocking objects Pin
Colin Angus Mackay24-May-08 22:57
Colin Angus Mackay24-May-08 22:57 
GeneralRe: Mocking objects Pin
N a v a n e e t h25-May-08 7:03
N a v a n e e t h25-May-08 7:03 
GeneralRe: Mocking objects Pin
N a v a n e e t h25-May-08 18:48
N a v a n e e t h25-May-08 18:48 
QuestionFormatting a number Pin
N.Surendra Prasad23-May-08 20:43
N.Surendra Prasad23-May-08 20:43 
GeneralRe: Formatting a number Pin
Krazy Programmer23-May-08 20:45
Krazy Programmer23-May-08 20:45 
AnswerRe: Formatting a number Pin
DaveyM6923-May-08 22:19
professionalDaveyM6923-May-08 22:19 
GeneralRe: Formatting a number Pin
N.Surendra Prasad25-May-08 17:29
N.Surendra Prasad25-May-08 17:29 
GeneralRe: Formatting a number Pin
DaveyM6925-May-08 22:26
professionalDaveyM6925-May-08 22:26 
GeneralRe: Formatting a number Pin
DaveyM6925-May-08 23:02
professionalDaveyM6925-May-08 23:02 
QuestionC# noob needs help with udp & in general Pin
DrWigglechin23-May-08 19:29
DrWigglechin23-May-08 19:29 
AnswerRe: C# noob needs help with udp & in general Pin
leppie24-May-08 8:39
leppie24-May-08 8:39 
QuestionHow to update exe file after install application Pin
cocoonwls23-May-08 16:32
cocoonwls23-May-08 16:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.