|
I have a project that I am building that I have to change a method to behave slightly different. I have several unit tests already built against that method, but I will need to add more to cover the new behavior I am going to add to it. Is it good form...
Started by Jason on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Is simple enough that I can know the outcome with certainty, I will sometimes change code, then testsIt is better to update the tests first and let them fail and then go back and update the code until get fixed when you fix your ....
|
|
How can we change the background colour for Visual Studio Code Editor ?
Thanks
Started by Asad Butt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Tools -> Options -> Under the Environment section there are Fonts & Colors, change the Item a blog post (some years ago actually) for customizing VS code editor with custom fonts, background etc.
|
|
I want to change the backcolor of a headercell in datagridview row .So how can i do that in code C#?
Started by Mobin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But now can anyone tell me how do i change font properties of the text named as value of the headercell like " headercell.value "
To change the font properties of a specified header cell you can try.
|
Ask your Facebook Friends
|
How can I change the desktop wallpaper using C# Code?
Started by Sauron on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
See Neil's code.
Its only about changing few registry keys...
|
|
When I hover a text with animation definitely I will use jquery. Is there a code that will change the color, or size?
Started by Jordan Pagaduan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Place the following in your jQuery mouseover event handler:
$(this).css('color', 'red');
To set both... .
As for font-size, have a look at the animate example in the jQuery docs .
You want to animate the colour of some text? Try the first result on Google .
|
|
I have a content placeholder containing a link:
<asp:Content ID="Content5" runat="server" contentplaceholderid="ContentPlaceHolder3"> <a href= "../WOPages/WO_Main.aspx?WONum=12345">WorkOrder</a>
and I would like to change the href querystring...
Started by dsteele on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You can get the....
=12345"> WorkOrder </a>
...then you can access/change the HRef property programmatically;asp:literal id="hrefString" runat="server"></asp:literal>"
and assign the literal in code is the HTML code.
|
|
I'm working in a 12 year old code base which I have been the only developer on. There are times that I'll make a a very small change based on an intuition (or quantum leap in logic ;-).
Usually I try to deconstruct that change and make sure I read thoroughly...
Started by Clay Nichols on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
But the deadline is king that fixes any problems later... .
I'm under a tight deadline i get the code working reliably no matter if I understand the whole thing - and update the code to reflect any bad decisions with the copy/pasted code.
|
|
Hi,
When coding systems which use configuration information, it is always a best practice to soft code these on some medium like Xml so these values can be edited without recompiling the entire system.
However, plenty of values like Urls are hard coded...
Started by dotnetdev on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
It's also possible of the rationale of "hard coding....
If recompiling/redeploying is something so terrible you organize your codeLazy programmers, or they don't expect values like URIs to change anytime soon.
To change those values.
|
|
I dislike it when I lose the session state of my ASP.NET web app when changing code.
Losing the session state means I have to log in over and over again. It's annoying.
Is there anyway I can reconfigure my app so that I can make changes to code and not...
Started by Frank Krueger on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe it will work....
I wonder what will happen if you will store session state in StateServer .
Unfortunately changes in the web.config or in dll's in the bin folder will cause an application reload and there is nothing you can do about it, AFAIK.
|
|
Lately I had to change some code on older systems where not all of the code has unit tests.
Before making the changes I want to write tests, but each class created a lot of dependencies and other anti-patterns which made testing quite hard.
Obviously,...
Started by abyx on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If tests don't break the build, then you can easily run into the situation where new code breaks be a red flag that either the....
To avoid making tons of changes in old code is to just refactor it a little until you can test it.
|