This is essentially a single class that requires some text manipulation skills.
Move all tests out of existing files into new files. Tests are written at the end the file, and are surround by #if DEBUG. There may be multiple test classes within the #if DEBUG block.
There are other #if DEBUG preprocessor instructions within the source code. If the #if DEBUG is within a class, it must be left undisturbed. Other preprocessor instructions may exist after #if DEBUG, such as #if DEBUG && SomethingElse. These should be considered valid to move.
Byte order marks are also present in the source code and must be preserved in the original and new file.
'using' declarations must be included in the new file and source code should be able to compile.
#region may or may not exists (it is not required for the detection), but should be discarded if found.
Formatting must be retained.
Ideally, syntax would be:
bool [login to view URL](Stream stream, out Stream fileWithoutTests, out Stream fileWithTests)
the return value would indicate that the two output streams are non null and contain valid source code.
sample:
namespace X
{
class A
{
#if DEBUG
public void AMethod()
{
}
#endif
}
}
#region Test
#if DEBUG
namespace [login to view URL]
{
class TestForX
{
}
}
#endif
#endregion
result:
Stream fileWithoutTests
namespace X
{
class A
{
#if DEBUG
public void AMethod()
{
}
#endif
}
}
Stream fileWithTests
namespace [login to view URL]
{
class TestForX
{
}
}
Hi.............
I am an expert in c# programming.
I want to work with you, and I am very free in recent days.
Thus, I can finish the work in a short time.
Thanks.
Greetings,
I'm well experienced developer and here are my Questions for you project:
===================================
1: when you want to complete this project?
I can provide quick & quality result within your budget.
My communication and working time will be flexible to meet your requirement.
I will do my best in order to realize your ideas into life.
Regards
Faisal