This project is read-only.

Special Characters @#$%^&*()!!!

Dec 15, 2011 at 9:19 AM
Edited Dec 15, 2011 at 9:32 AM

(^__^) Hi there,

I am having a problem with special characters (as you can notice in the title) particullary the comma (",")

(T__T) And all I can say is @#$%^! <--(means blocked bad words in some comics)


See, I have a story which kinda looks like this

story is Feeding the Animals
in order to feed the animals when they are hungry
as a Rancher
i want to feed them if they are hungry

with scenario the animals are hungry

given Food stock is available
when The cat, dog, mouse, goat, cow, sheep and a pink magical flying unicorn are hungry is $true
then animals can eat


which produces something like this

public void FeedingTheAnimals()
    new Story("Feeding the Animals")
        .InOrderTo("feed the animals when they are hungry")
        .IWant("to feed them if they are hungry")

                .WithScenario("the animals are hungry")
                    .When(TheCat,Dog,Mouse,Goat,Cow,SheepAndAPinkMagicalFlyingUnicornAreHungryIs_, true)

private void FoodStockIsAvailable()
    throw new NotImplementedException();

private void TheCat,Dog,Mouse,Goat,Cow,SheepAndAPinkMagicalFlyingUnicornAreHungryIs_(bool arg1)
    throw new NotImplementedException();

private void AnimalsCanEat()
    throw new NotImplementedException();

And we know we cannot use comma in those method names.


So I tried making putting the commas in the parameters like so:

.When(Cat_Dog_Mouse_Goat_Cow_SheepAndMagicalFlyingUnicornAreHungryIs_, ",", ",", ",", ",", ",", true)


but unfortunately, each Condition could only take up 1 Action and its 4 args.


I need to as much as possible have a way to keep the sentence the way the QA gave it.... Or is there a way?

Hope you can help me with this.

(^__^) Thanks in advance!!!


Oh! And an advance Merry Christmas and a Happy New Year to you all!